def __init__(self, parent): FormPanel.__init__(self, parent, -1, DataValidator) self.createField('Show empty root items', wx.CheckBox, 'show_empty_root_items', pos.config['menu', 'show_empty_root_items']) self.createField('Show disabled items', wx.CheckBox, 'show_disabled_items', pos.config['menu', 'show_disabled_items']) #self.createField('Open in fullscreen', wx.CheckBox, 'fullscreen', pos.config['app', 'fullscreen']) self._init_fields()
def __init__(self, parent, id): FormPanel.__init__(self, parent, id, AddressValidator) self.createField('Country', wx.TextCtrl, 'country', '') self.createField('Region', wx.TextCtrl, 'region', '') self.createField('City', wx.TextCtrl, 'city', '') self.createField('Details', wx.TextCtrl, 'details', '') self._init_fields()
def __init__(self, parent): FormPanel.__init__(self, parent, -1, DataValidator) self.createField('Username', wx.TextCtrl, 'username', '') self.createField('Role', wx.TextCtrl, 'role', None) self.createField(None, wx.CheckBox, 'passwordCheck', False, label='Change Password') self.createField('Password', wx.TextCtrl, 'password1', '', style=wx.TE_PASSWORD) self.createField('Confirm Password', wx.TextCtrl, 'password2', '', style=wx.TE_PASSWORD) self._init_fields()
def __init__(self, parent): FormPanel.__init__(self, parent, -1, DataValidator) self.createField('Open in fullscreen', wx.CheckBox, 'fullscreen', pos.config['app', 'fullscreen']) self._init_fields()