The keystroke editor now works properly

This commit is contained in:
2015-02-26 10:09:13 -06:00
parent e7852e5e91
commit b7193d16ee
8 changed files with 190 additions and 134 deletions

View File

@@ -13,4 +13,13 @@ class BaseWXDialog(wx.Dialog):
if hasattr(control, "GetValue"): return getattr(control, "GetValue")()
elif hasattr(control, "GetLabel"): return getattr(control, "GetLabel")()
else: return -1
else: return 0
else: return 0
def set(self, control, text):
if hasattr(self, control):
control = getattr(self, control)
if hasattr(control, "SetValue"): return getattr(control, "SetValue")(text)
elif hasattr(control, "SetLabel"): return getattr(control, "SetLabel")(text)
elif hasattr(control, "ChangeValue"): return getattr(control, "ChangeValue")(text)
else: return -1
else: return 0