added __getitem__ to SettingsList; added set_value to Setting
This commit is contained in:
@ -43,6 +43,9 @@ class SettingsList(wx.GridSizer):
|
||||
def set(self, name, value):
|
||||
self.children[name].text.SetValue(value)
|
||||
|
||||
def __getitem__(self, key):
|
||||
return self.children[key]
|
||||
|
||||
|
||||
|
||||
class Setting:
|
||||
@ -72,6 +75,9 @@ class Setting:
|
||||
def get_value(self):
|
||||
return self.text.GetValue()
|
||||
|
||||
def set_value(self, val):
|
||||
self.text.SetValue(val)
|
||||
|
||||
|
||||
def on_state_change(self, event):
|
||||
if self.get_state():
|
||||
|
Reference in New Issue
Block a user