| Issue 85: | to_local stops working at revision ec5291458f | |
| 1 person starred this issue and may be notified of changes. | Back to list |
the widget.to_local method reports the global coordinates beginning at revision ec5291458f. This code reports the same coordinates for both local and global: # This works in revision 093b58486f # Stops working at revision ec5291458f from pymt import * b = MTButton() b.pos = (50,50) @b.event def on_touch_down(touch): print 'Local',b.to_local(touch.x,touch.y),'Global',touch.x,touch.y w = MTWindow() w.add_widget(b) runTouchApp()
Aug 29, 2009
Project Member
#1
txprog
Labels:
Component-Core
Aug 29, 2009
(No comment was entered for this change.)
Labels:
Milestone-0.3
Aug 29, 2009
(No comment was entered for this change.)
Labels:
Milestone-0.3.1
Oct 29, 2009
The behavior have changed in 0.3, it don't take anymore shift of x/y in widget, only matrix transformation.
Nov 2, 2009
(No comment was entered for this change.)
Labels:
Milestone-0.4
Dec 30, 2009
(No comment was entered for this change.)
Labels:
Milestone-0.4.1
Jun 1, 2010
(No comment was entered for this change.)
Labels:
Milestone-0.5
Jun 26, 2010
For git: 534180cea4bcb81a6900bcd1f3746b607519308c is the first bad commit
Jun 29, 2010
fixed, use relative= attribute if you want relative coordinate.
Status:
Done
|