drag-and-drop with left button

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2007-04-30 15:48:42 +00:00
parent 48670a3300
commit ed650677e1
6 changed files with 39 additions and 7 deletions

View File

@@ -397,9 +397,11 @@ class ParamUnit(PPanel):
def GetValue(self):
return self.text.GetValue()
def SetValue(self, value):
self.freeze = True
if not value: value = '0'
self.text.SetValue(value)
self.Change(0)
self.freeze = False
def Change(self, x):
self.freeze = True
# Check if we are working with dialog units