| Issue 303: | MTList and MTScatter | |
| 2 people starred this issue and may be notified of changes. | Back to list |
If I combine MTList and MTScatter and drag the scatter out of his "size", the List acting stupid.
Sample Code:
from pymt import *
from os.path import join
# create list
lst = MTList(pos=(200,200), size=(200,250), do_x = False)
#Loading Image
imagefilename = join('docs/2.png')
textimage = MTImage(arg=imagefilename)
textimage.height=textimage.height/(textimage.width/lst.width)
textimage.width=lst.width
#Adding textimage
lst.add_widget(textimage)
# create scatter
scat=MTScatter(size=(400,450))
scat.add_widget(lst)
getWindow().add_widget(scat)
if __name__ == '__main__':
runTouchApp()
Movie that shows the problem: http://jegger.ch/datapool/movie/mtlist/mtlist.html
Aug 17, 2010
Closed via GitHub: http://github.com/tito/pymt/commit/a76a12a307bf25525431567e414d3f353dc3dae1 touch: add apply_transform_2d() to execute an transformation function on the touch. use it when we are changing of matrix (base, innerwindow, scatter). (fixes issue 303 )
Status:
Done
|
Labels: Milestone-0.5.1