Пример #1
0
 def __init__(self, session):
  super(autocompletionManage, self).__init__()
  self.session = session
  self.dialog = wx_manage.autocompletionManageDialog()
  self.database = storage.storage(self.session.session_id)
  self.users = self.database.get_all_users()
  self.dialog.put_users(self.users)
  widgetUtils.connect_event(self.dialog.add, widgetUtils.BUTTON_PRESSED, self.add_user)
  widgetUtils.connect_event(self.dialog.remove, widgetUtils.BUTTON_PRESSED, self.remove_user)
  self.dialog.get_response()
Пример #2
0
 def __init__(self, window):
     super(autocompletionManage, self).__init__()
     self.window = window
     self.dialog = wx_manage.autocompletionManageDialog()
     self.database = storage.storage()
     self.users = self.database.get_all_users()
     self.dialog.put_users(self.users)
     self.dialog.add.Bind(wx.EVT_BUTTON, self.add_user)
     self.dialog.remove.Bind(wx.EVT_BUTTON, self.remove_user)
     self.dialog.ShowModal()
Пример #3
0
 def __init__(self, window):
  super(autocompletionManage, self).__init__()
  self.window = window
  self.dialog = wx_manage.autocompletionManageDialog()
  self.database = storage.storage()
  self.users = self.database.get_all_users()
  self.dialog.put_users(self.users)
  self.dialog.add.Bind(wx.EVT_BUTTON, self.add_user)
  self.dialog.remove.Bind(wx.EVT_BUTTON, self.remove_user)
  self.dialog.ShowModal()
Пример #4
0
 def __init__(self, session):
     super(autocompletionManage, self).__init__()
     self.session = session
     self.dialog = wx_manage.autocompletionManageDialog()
     self.database = storage.storage(self.session.session_id)
     self.users = self.database.get_all_users()
     self.dialog.put_users(self.users)
     widgetUtils.connect_event(self.dialog.add, widgetUtils.BUTTON_PRESSED,
                               self.add_user)
     widgetUtils.connect_event(self.dialog.remove,
                               widgetUtils.BUTTON_PRESSED, self.remove_user)
     self.dialog.get_response()