My favorites
▼
|
Sign in
pymt
PyMT, a framework for making accelerated multitouch UI
Project Home
Downloads
Issues
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
215
attachment: pymt.widget.py.r1.diff
(516 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/pymt/ui/widgets/widget.py b/pymt/ui/widgets/widget.py
index 29a3845..451a4cb 100644
--- a/pymt/ui/widgets/widget.py
+++ b/pymt/ui/widgets/widget.py
@@ -253,7 +253,7 @@ class MTWidget(EventDispatcher):
def to_widget(self, x, y):
'''Return the coordinate from window to local widget'''
- x, y = self.parent.to_widget(x, y)
+ x, y = (x, y) if not self.parent else self.parent.to_widget(x, y)
return self.to_local(x, y)
def to_window(self, x, y, initial=True):
Powered by
Google Project Hosting