Beispiel #1
0
 def __init__(self):
     super(autocompletionManageDialog,
           self).__init__(parent=None,
                          id=-1,
                          title=_(u"Manage Autocomplete users’ database"))
     panel = wx.Panel(self)
     sizer = wx.BoxSizer(wx.VERTICAL)
     label = wx.StaticText(panel, -1, _(u"Editing TWBlue users database"))
     self.users = widgets.list(panel,
                               _(u"Username"),
                               _(u"Name"),
                               style=wx.LC_REPORT)
     sizer.Add(label, 0, wx.ALL, 5)
     sizer.Add(self.users.list, 0, wx.ALL, 5)
     self.add = wx.Button(panel, -1, _(u"Add user"))
     self.remove = wx.Button(panel, -1, _(u"Remove user"))
     optionsBox = wx.BoxSizer(wx.HORIZONTAL)
     optionsBox.Add(self.add, 0, wx.ALL, 5)
     optionsBox.Add(self.remove, 0, wx.ALL, 5)
     sizer.Add(optionsBox, 0, wx.ALL, 5)
     ok = wx.Button(panel, wx.ID_OK)
     cancel = wx.Button(panel, wx.ID_CANCEL)
     sizerBtn = wx.BoxSizer(wx.HORIZONTAL)
     sizerBtn.Add(ok, 0, wx.ALL, 5)
     sizer.Add(cancel, 0, wx.ALL, 5)
     sizer.Add(sizerBtn, 0, wx.ALL, 5)
     panel.SetSizer(sizer)
     self.SetClientSize(sizer.CalcMin())
Beispiel #2
0
 def __init__(self):
  super(sessionManagerWindow, self).__init__(parent=None, title=_(u"Session manager"), size=wx.DefaultSize)
  panel = wx.Panel(self)
  sizer = wx.BoxSizer(wx.VERTICAL)
  label = wx.StaticText(panel, -1, _(u"Accounts list"), size=wx.DefaultSize)
  listSizer = wx.BoxSizer(wx.HORIZONTAL)
  self.list = widgets.list(panel, _(u"Account"), style=wx.LC_SINGLE_SEL|wx.LC_REPORT)
  listSizer.Add(label, 0, wx.ALL, 5)
  listSizer.Add(self.list.list, 0, wx.ALL, 5)
  sizer.Add(listSizer, 0, wx.ALL, 5)
  self.new = wx.Button(panel, -1, _(u"New account"), size=wx.DefaultSize)
  self.remove = wx.Button(panel, -1, _(u"Remove account"))
  self.configuration = wx.Button(panel, -1, _(u"Global Settings"))
  ok = wx.Button(panel, wx.ID_OK, size=wx.DefaultSize)
  ok.SetDefault()
  cancel = wx.Button(panel, wx.ID_CANCEL, size=wx.DefaultSize)
  buttons = wx.BoxSizer(wx.HORIZONTAL)
  buttons.Add(self.new, 0, wx.ALL, 5)
  buttons.Add(self.configuration, 0, wx.ALL, 5)
  buttons.Add(ok, 0, wx.ALL, 5)
  buttons.Add(cancel, 0, wx.ALL, 5)
  sizer.Add(buttons, 0, wx.ALL, 5)
  panel.SetSizer(sizer)
  min = sizer.CalcMin()
  self.SetClientSize(min)
Beispiel #3
0
    def __init__(self, parent=None, keyboard_handler=None):
        super(keystrokeEditor, self).__init__(parent=parent,
                                              id=-1,
                                              title=_(u"Keystroke editor"))
        panel = wx.Panel(self)
        self.parent = parent
        self.keyboard_handler = keyboard_handler or None
        self.actions = []
        sizer = wx.BoxSizer(wx.VERTICAL)
        keysText = wx.StaticText(panel, -1, _(u"Select a keystroke to edit"))
        self.keys = widgets.list(self,
                                 _(u"Action"),
                                 _(u"Keystroke"),
                                 style=wx.LC_REPORT | wx.LC_SINGLE_SEL,
                                 size=(400, 450))
        self.keys.list.SetFocus()
        firstSizer = wx.BoxSizer(wx.HORIZONTAL)
        firstSizer.Add(keysText)
        firstSizer.Add(self.keys.list)
        edit = wx.Button(panel, -1, _(u"Edit"))
        self.Bind(wx.EVT_BUTTON, self.edit, edit)
        edit.SetDefault()

        close = wx.Button(panel, wx.ID_CANCEL, _(u"Close"))
        secondSizer = wx.BoxSizer(wx.HORIZONTAL)
        secondSizer.Add(edit)
        secondSizer.Add(close)
        sizer.Add(firstSizer)
        sizer.Add(secondSizer)
        panel.SetSizerAndFit(sizer)
        self.put_keystrokes()
Beispiel #4
0
 def __init__(self):
     super(sessionManagerWindow, self).__init__(parent=None,
                                                title="Session manager",
                                                size=wx.DefaultSize)
     panel = wx.Panel(self)
     sizer = wx.BoxSizer(wx.VERTICAL)
     label = wx.StaticText(panel,
                           -1,
                           _(u"Accounts list"),
                           size=wx.DefaultSize)
     listSizer = wx.BoxSizer(wx.HORIZONTAL)
     self.list = widgets.list(panel,
                              _(u"Account"),
                              style=wx.LC_SINGLE_SEL | wx.LC_REPORT)
     listSizer.Add(label, 0, wx.ALL, 5)
     listSizer.Add(self.list.list, 0, wx.ALL, 5)
     sizer.Add(listSizer, 0, wx.ALL, 5)
     self.new = wx.Button(panel, -1, _(u"New account"), size=wx.DefaultSize)
     self.remove = wx.Button(panel, -1, _(u"Remove account"))
     self.configuration = wx.Button(panel, -1, _(u"Global Settings"))
     ok = wx.Button(panel, wx.ID_OK, size=wx.DefaultSize)
     ok.SetDefault()
     cancel = wx.Button(panel, wx.ID_CANCEL, size=wx.DefaultSize)
     buttons = wx.BoxSizer(wx.HORIZONTAL)
     buttons.Add(self.new, 0, wx.ALL, 5)
     buttons.Add(self.configuration, 0, wx.ALL, 5)
     buttons.Add(ok, 0, wx.ALL, 5)
     buttons.Add(cancel, 0, wx.ALL, 5)
     sizer.Add(buttons, 0, wx.ALL, 5)
     panel.SetSizer(sizer)
     min = sizer.CalcMin()
     self.SetClientSize(min)
Beispiel #5
0
 def __init__(self, *args, **kwargs):
  super(listViewer, self).__init__(parent=None, *args, **kwargs)
  self.SetTitle(_(u"Lists manager"))
  panel = wx.Panel(self)
  label = wx.StaticText(panel, -1, _(u"Lists"))
  self.lista = widgets.list(panel, _(u"List"), _(u"Description"), _(u"Owner"), _(u"Members"), _(u"mode"), size=(800, 800), style=wx.LC_REPORT|wx.LC_SINGLE_SEL)
  self.lista.list.SetFocus()
  sizer = wx.BoxSizer(wx.VERTICAL)
  sizer.Add(label)
  sizer.Add(self.lista.list)
  self.createBtn = wx.Button(panel, wx.NewId(), _(u"Create a new list"))
  self.editBtn = wx.Button(panel, -1, _(u"Edit"))
  self.deleteBtn = wx.Button(panel, -1, _(u"Remove"))
  self.view = wx.Button(panel, -1, _(u"Open in buffer"))
#  self.members = wx.Button(panel, -1, _(u"View members"))
#  self.members.Disable()
#  self.subscriptors = wx.Button(panel, -1, _(u"View subscribers"))
#  self.subscriptors.Disable()
#  self.get_linkBtn = wx.Button(panel, -1, _(u"Get link for the list"))
#  self.get_linkBtn.Bind(wx.EVT_BUTTON, self.onGetLink)
  self.cancelBtn = wx.Button(panel, wx.ID_CANCEL)
  btnSizer = wx.BoxSizer()
  btnSizer.Add(self.createBtn)
  btnSizer.Add(self.editBtn)
  btnSizer.Add(self.cancelBtn)
  panel.SetSizer(sizer)
Beispiel #6
0
 def __init__(self, parent=None, keyboard_handler=None):
  super(keystrokeEditor, self).__init__(parent=parent, id=-1, title=_(u"Keystroke editor"))
  panel = wx.Panel(self)
  self.parent = parent
  self.keyboard_handler = keyboard_handler or None
  self.actions = []
  sizer = wx.BoxSizer(wx.VERTICAL)
  keysText = wx.StaticText(panel, -1, _(u"Select a keystroke to edit"))
  self.keys = widgets.list(self, _(u"Action"), _(u"Keystroke"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL, size=(400, 450))
  self.keys.list.SetFocus()
  firstSizer = wx.BoxSizer(wx.HORIZONTAL)
  firstSizer.Add(keysText)
  firstSizer.Add(self.keys.list)
  edit = wx.Button(panel, -1, _(u"Edit"))
  self.Bind(wx.EVT_BUTTON, self.edit, edit)
  edit.SetDefault()

  close = wx.Button(panel, wx.ID_CANCEL, _(u"Close"))
  secondSizer = wx.BoxSizer(wx.HORIZONTAL)
  secondSizer.Add(edit)
  secondSizer.Add(close)
  sizer.Add(firstSizer)
  sizer.Add(secondSizer)
  panel.SetSizerAndFit(sizer)
  self.put_keystrokes()
Beispiel #7
0
 def __init__(self, *args, **kwargs):
     super(listViewer, self).__init__(parent=None, *args, **kwargs)
     self.SetTitle(_(u"Lists manager"))
     panel = wx.Panel(self)
     label = wx.StaticText(panel, -1, _(u"Lists"))
     self.lista = widgets.list(panel,
                               _(u"List"),
                               _(u"Description"),
                               _(u"Owner"),
                               _(u"Members"),
                               _(u"mode"),
                               size=(800, 800),
                               style=wx.LC_REPORT | wx.LC_SINGLE_SEL)
     self.lista.list.SetFocus()
     sizer = wx.BoxSizer(wx.VERTICAL)
     sizer.Add(label)
     sizer.Add(self.lista.list)
     self.createBtn = wx.Button(panel, wx.NewId(), _(u"Create a new list"))
     self.editBtn = wx.Button(panel, -1, _(u"Edit"))
     self.deleteBtn = wx.Button(panel, -1, _(u"Remove"))
     self.view = wx.Button(panel, -1, _(u"Open in buffer"))
     #  self.members = wx.Button(panel, -1, _(u"View members"))
     #  self.members.Disable()
     #  self.subscriptors = wx.Button(panel, -1, _(u"View subscribers"))
     #  self.subscriptors.Disable()
     #  self.get_linkBtn = wx.Button(panel, -1, _(u"Get link for the list"))
     #  self.get_linkBtn.Bind(wx.EVT_BUTTON, self.onGetLink)
     self.cancelBtn = wx.Button(panel, wx.ID_CANCEL)
     btnSizer = wx.BoxSizer()
     btnSizer.Add(self.createBtn)
     btnSizer.Add(self.editBtn)
     btnSizer.Add(self.cancelBtn)
     panel.SetSizer(sizer)
Beispiel #8
0
 def create_list(self):
  self.list = widgets.list(self, _(u"User"), _(u"Text"), _(u"Date"), _(u"Client"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_VRULES)
  self.list.set_windows_size(0, 60)
  self.list.set_windows_size(1, 320)
  self.list.set_windows_size(2, 110)
  self.list.set_windows_size(3, 84)
  self.list.set_size()
Beispiel #9
0
 def __init__(self):
  super(sessionManagerWindow, self).__init__(parent=None, title=_(u"Session manager"), size=wx.DefaultSize)
#  panelSizer = wx.BoxSizer(wx.VERTICAL)
  panel = wx.Panel(self)
  sizer = wx.BoxSizer(wx.VERTICAL)
  label = wx.StaticText(panel, -1, _(u"Select a twitter account to start TW Blue"), size=wx.DefaultSize)
  listSizer = wx.BoxSizer(wx.HORIZONTAL)
  self.list = widgets.list(panel, _(u"Account"), style=wx.LC_SINGLE_SEL|wx.LC_REPORT)
  listSizer.Add(label, 0, wx.ALL, 5)
  listSizer.Add(self.list.list, 0, wx.ALL, 5)
  sizer.Add(listSizer, 0, wx.ALL, 5)
  new = wx.Button(panel, -1, _(u"New account"), size=wx.DefaultSize)
  new.Bind(wx.EVT_BUTTON, self.new_account)
  self.removeSession = wx.Button(panel, -1, _(u"Remove session"))
  self.removeSession.Disable()
  self.removeSession.Bind(wx.EVT_BUTTON, self.remove)
  ok = wx.Button(panel, wx.ID_OK, size=wx.DefaultSize)
  ok.SetDefault()
  ok.Bind(wx.EVT_BUTTON, self.ok)
  cancel = wx.Button(panel, wx.ID_CANCEL, size=wx.DefaultSize)
  buttons = wx.BoxSizer(wx.HORIZONTAL)
  buttons.Add(new, 0, wx.ALL, 5)
  buttons.Add(self.removeSession, 0, wx.ALL, 5)
  buttons.Add(ok, 0, wx.ALL, 5)
  buttons.Add(cancel, 0, wx.ALL, 5)
  sizer.Add(buttons, 0, wx.ALL, 5)
  panel.SetSizer(sizer)
  self.fill_list()
  min = sizer.CalcMin()
  self.SetClientSize(min)
Beispiel #10
0
 def __init__(self, parent, name_buffer):
  super(accountPanel, self).__init__(parent=parent)
  self.type = "account"
  self.name_buffer = name_buffer
  sizer = wx.BoxSizer(wx.VERTICAL)
  self.list = widgets.list(self, _(u"Announce"))
  sizer.Add(self.list.list, 0, wx.ALL, 5)
  self.SetSizer(sizer)
Beispiel #11
0
 def __init__(self, parent, name):
  self.type = "event"
  super(eventsPanel, self).__init__(parent)
  self.name = name
  sizer = wx.BoxSizer()
  self.list = widgets.list(self, _(u"Date"), _(u"Event"), size=(600,600), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_VRULES)
  self.tweet = wx.Button(self, -1, _(u"Tweet"))
  self.delete_event = wx.Button(self, -1, _(u"Remove event"))
Beispiel #12
0
 def create_list(self):
     self.list = widgets.list(self,
                              _(u"Trending topic"),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                              | wx.LC_VRULES)
     if self.system == "Windows":
         self.list.set_windows_size(0, 30)
         self.list.set_size()
Beispiel #13
0
 def create_list(self):
  self.list = widgets.list(self, _(u"User"), _(u"Text"), _(u"Date"), _(u"Client"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_VRULES)
  if self.system == "Windows":
   self.list.set_windows_size(0, 30)
   self.list.set_windows_size(1, 160)
   self.list.set_windows_size(2, 55)
   self.list.set_windows_size(3, 42)
   self.list.set_size()
Beispiel #14
0
 def create_list(self):
     """ Returns the list for put the tweets here."""
     self.list = widgets.list(self,
                              _(u"Trending topic"),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                              | wx.LC_VRULES)
     self.list.set_windows_size(0, 30)
     self.list.set_size()
Beispiel #15
0
 def __init__(self, parent, name_buffer):
     super(accountPanel, self).__init__(parent=parent)
     self.type = "account"
     self.name_buffer = name_buffer
     sizer = wx.BoxSizer(wx.VERTICAL)
     self.list = widgets.list(self, _(u"Announce"))
     sizer.Add(self.list.list, 0, wx.ALL, 5)
     self.SetSizer(sizer)
Beispiel #16
0
 def __init__(self, parent, name):
     self.type = "event"
     super(eventsPanel, self).__init__(parent)
     self.name = name
     sizer = wx.BoxSizer()
     self.list = widgets.list(
         self, _(u"Date"), _(u"Event"), size=(600, 600), style=wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES
     )
     self.tweet = wx.Button(self, -1, _(u"Tweet"))
     self.delete_event = wx.Button(self, -1, _(u"Remove event"))
Beispiel #17
0
 def create_list(self):
     self.list = widgets.list(self,
                              _(u"User"),
                              _(u"Text"),
                              _(u"Date"),
                              _(u"Client"),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                              | wx.LC_VRULES)
     self.list.set_windows_size(0, 60)
     self.list.set_windows_size(1, 320)
     self.list.set_windows_size(2, 110)
     self.list.set_windows_size(3, 84)
     self.list.set_size()
Beispiel #18
0
 def create_list(self):
     self.list = widgets.list(self,
                              _(u"User"),
                              _(u"Text"),
                              _(u"Date"),
                              _(u"Client"),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                              | wx.LC_VRULES)
     if self.system == "Windows":
         self.list.set_windows_size(0, 30)
         self.list.set_windows_size(1, 160)
         self.list.set_windows_size(2, 55)
         self.list.set_windows_size(3, 42)
         self.list.set_size()
Beispiel #19
0
 def __init__(self, parent, window, sound=""):
  self.type = "event"
  self.system = platform.system()
  self.name_buffer = "events"
  self.parent = window
  self.sound = "new_event.ogg"
  wx.Panel.__init__(self, parent)
  sizer = wx.BoxSizer()
  self.list = widgets.list(self, _(u"Date"), _(u"Event"), size=(600,600), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_VRULES)
  self.tweet = wx.Button(self, -1, _(u"Tweet"))
  self.tweet.Bind(wx.EVT_BUTTON, self.post_status)
  self.delete_event = wx.Button(self, -1, _(u"Remove event"))
  self.delete_event.Bind(wx.EVT_BUTTON, self.on_delete_event)
  self.bind_events()
 def __init__(self, parent):
  super(other_buffers, self).__init__(parent)
  sizer = wx.BoxSizer(wx.VERTICAL)
  self.buffers = widgets.list(self, _(u"Buffer"), _(u"Status"), style=wx.LC_SINGLE_SEL|wx.LC_REPORT)
  sizer.Add(self.buffers.list, 0, wx.ALL, 5)
  btnSizer = wx.BoxSizer(wx.HORIZONTAL)
  self.toggle_state = wx.Button(self, -1, _(u"Show/hide"))
  self.up = wx.Button(self, -1, _(u"Move up"))
  self.down = wx.Button(self, -1, _(u"Move down"))
  btnSizer.Add(self.toggle_state, 0, wx.ALL, 5)
  btnSizer.Add(self.up, 0, wx.ALL, 5)
  btnSizer.Add(self.down, 0, wx.ALL, 5)
  sizer.Add(btnSizer, 0, wx.ALL, 5)
  self.SetSizer(sizer)
 def __init__(self, parent):
     super(other_buffers, self).__init__(parent)
     sizer = wx.BoxSizer(wx.VERTICAL)
     self.buffers = widgets.list(self,
                                 _(u"Buffer"),
                                 _(u"Status"),
                                 style=wx.LC_SINGLE_SEL | wx.LC_REPORT)
     sizer.Add(self.buffers.list, 0, wx.ALL, 5)
     btnSizer = wx.BoxSizer(wx.HORIZONTAL)
     self.toggle_state = wx.Button(self, -1, _(u"Show/hide"))
     self.up = wx.Button(self, -1, _(u"Move up"))
     self.down = wx.Button(self, -1, _(u"Move down"))
     btnSizer.Add(self.toggle_state, 0, wx.ALL, 5)
     btnSizer.Add(self.up, 0, wx.ALL, 5)
     btnSizer.Add(self.down, 0, wx.ALL, 5)
     sizer.Add(btnSizer, 0, wx.ALL, 5)
     self.SetSizer(sizer)
Beispiel #22
0
 def __init__(self, parent):
     self.twitter = parent.twitter
     self.db = parent.db
     self.nb = parent.nb
     self.parent = parent
     wx.Dialog.__init__(self, None)
     self.SetTitle(_(u"Lists manager"))
     panel = wx.Panel(self)
     label = wx.StaticText(panel, -1, _(u"Lists"))
     self.lista = widgets.list(
         panel,
         _(u"List"),
         _(u"Description"),
         _(u"Owner"),
         _(u"Members"),
         _(u"mode"),
         size=(800, 800),
         style=wx.LC_REPORT | wx.LC_SINGLE_SEL,
     )
     self.lista.list.SetFocus()
     sizer = wx.BoxSizer(wx.VERTICAL)
     sizer.Add(label)
     sizer.Add(self.lista.list)
     self.createBtn = wx.Button(panel, wx.NewId(), _(u"Create a new list"))
     self.createBtn.Bind(wx.EVT_BUTTON, self.onGo)
     self.editBtn = wx.Button(panel, -1, _(u"Edit"))
     self.Bind(wx.EVT_BUTTON, self.onEdit, self.editBtn)
     self.deleteBtn = wx.Button(panel, -1, _(u"Remove"))
     self.Bind(wx.EVT_BUTTON, self.onDelete, self.deleteBtn)
     self.view = wx.Button(panel, -1, _(u"Open in buffer"))
     self.Bind(wx.EVT_BUTTON, self.onView, self.view)
     #  self.members = wx.Button(panel, -1, _(u"View members"))
     #  self.members.Disable()
     #  self.subscriptors = wx.Button(panel, -1, _(u"View subscribers"))
     #  self.subscriptors.Disable()
     #  self.get_linkBtn = wx.Button(panel, -1, _(u"Get link for the list"))
     #  self.get_linkBtn.Bind(wx.EVT_BUTTON, self.onGetLink)
     self.cancelBtn = wx.Button(panel, wx.ID_CANCEL)
     btnSizer = wx.BoxSizer()
     btnSizer.Add(self.createBtn)
     btnSizer.Add(self.editBtn)
     btnSizer.Add(self.cancelBtn)
     panel.SetSizer(sizer)
     self.populate_list()
     self.lista.select_item(0)
Beispiel #23
0
 def __init__(self, parent):
     self.twitter = parent.twitter
     self.db = parent.db
     self.nb = parent.nb
     self.parent = parent
     wx.Dialog.__init__(self, None)
     self.SetTitle(_(u"Lists manager"))
     panel = wx.Panel(self)
     label = wx.StaticText(panel, -1, _(u"Lists"))
     self.lista = widgets.list(panel,
                               _(u"List"),
                               _(u"Description"),
                               _(u"Owner"),
                               _(u"Members"),
                               _(u"mode"),
                               size=(800, 800),
                               style=wx.LC_REPORT | wx.LC_SINGLE_SEL)
     self.lista.list.SetFocus()
     sizer = wx.BoxSizer(wx.VERTICAL)
     sizer.Add(label)
     sizer.Add(self.lista.list)
     self.createBtn = wx.Button(panel, wx.NewId(), _(u"Create a new list"))
     self.createBtn.Bind(wx.EVT_BUTTON, self.onGo)
     self.editBtn = wx.Button(panel, -1, _(u"Edit"))
     self.Bind(wx.EVT_BUTTON, self.onEdit, self.editBtn)
     self.deleteBtn = wx.Button(panel, -1, _(u"Remove"))
     self.Bind(wx.EVT_BUTTON, self.onDelete, self.deleteBtn)
     self.view = wx.Button(panel, -1, _(u"Open in buffer"))
     self.Bind(wx.EVT_BUTTON, self.onView, self.view)
     #  self.members = wx.Button(panel, -1, _(u"View members"))
     #  self.members.Disable()
     #  self.subscriptors = wx.Button(panel, -1, _(u"View subscribers"))
     #  self.subscriptors.Disable()
     #  self.get_linkBtn = wx.Button(panel, -1, _(u"Get link for the list"))
     #  self.get_linkBtn.Bind(wx.EVT_BUTTON, self.onGetLink)
     self.cancelBtn = wx.Button(panel, wx.ID_CANCEL)
     btnSizer = wx.BoxSizer()
     btnSizer.Add(self.createBtn)
     btnSizer.Add(self.editBtn)
     btnSizer.Add(self.cancelBtn)
     panel.SetSizer(sizer)
     self.populate_list()
     self.lista.select_item(0)
Beispiel #24
0
 def __init__(self, parent, window, sound=""):
     self.type = "event"
     self.system = platform.system()
     self.name_buffer = "events"
     self.parent = window
     self.sound = "new_event.ogg"
     wx.Panel.__init__(self, parent)
     sizer = wx.BoxSizer()
     self.list = widgets.list(self,
                              _(u"Date"),
                              _(u"Event"),
                              size=(600, 600),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL
                              | wx.LC_VRULES)
     self.tweet = wx.Button(self, -1, _(u"Tweet"))
     self.tweet.Bind(wx.EVT_BUTTON, self.post_status)
     self.delete_event = wx.Button(self, -1, _(u"Remove event"))
     self.delete_event.Bind(wx.EVT_BUTTON, self.on_delete_event)
     self.bind_events()
Beispiel #25
0
 def __init__(self):
  super(autocompletionManageDialog, self).__init__(parent=None, id=-1, title=_(u"Manage Autocompletion database"))
  panel = wx.Panel(self)
  sizer = wx.BoxSizer(wx.VERTICAL)
  label = wx.StaticText(panel, -1, _(u"Editing {0} users database").format(application.name,))
  self.users = widgets.list(panel, _(u"Username"), _(u"Name"), style=wx.LC_REPORT)
  sizer.Add(label, 0, wx.ALL, 5)
  sizer.Add(self.users.list, 0, wx.ALL, 5)
  self.add = wx.Button(panel, -1, _(u"Add user"))
  self.remove = wx.Button(panel, -1, _(u"Remove user"))
  optionsBox = wx.BoxSizer(wx.HORIZONTAL)
  optionsBox.Add(self.add, 0, wx.ALL, 5)
  optionsBox.Add(self.remove, 0, wx.ALL, 5)
  sizer.Add(optionsBox, 0, wx.ALL, 5)
  ok = wx.Button(panel, wx.ID_OK)
  cancel = wx.Button(panel, wx.ID_CANCEL)
  sizerBtn = wx.BoxSizer(wx.HORIZONTAL)
  sizerBtn.Add(ok, 0, wx.ALL, 5)
  sizer.Add(cancel, 0, wx.ALL, 5)
  sizer.Add(sizerBtn, 0, wx.ALL, 5)
  panel.SetSizer(sizer)
  self.SetClientSize(sizer.CalcMin())
Beispiel #26
0
 def __init__(self):
  super(keystrokeEditorDialog, self).__init__(parent=None, id=-1, title=_(u"Keystroke editor"))
  panel = wx.Panel(self)
  self.actions = []
  sizer = wx.BoxSizer(wx.VERTICAL)
  keysText = wx.StaticText(panel, -1, _(u"Select a keystroke to edit"))
  self.keys = widgets.list(self, _(u"Action"), _(u"Keystroke"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL, size=(400, 450))
  self.keys.list.SetFocus()
  firstSizer = wx.BoxSizer(wx.HORIZONTAL)
  firstSizer.Add(keysText, 0, wx.ALL, 5)
  firstSizer.Add(self.keys.list, 0, wx.ALL, 5)
  self.edit = wx.Button(panel, -1, _(u"Edit"))
  self.edit.SetDefault()
  self.execute = wx.Button(panel, -1, _(u"Execute action"))
  close = wx.Button(panel, wx.ID_CANCEL, _(u"Close"))
  secondSizer = wx.BoxSizer(wx.HORIZONTAL)
  secondSizer.Add(self.edit, 0, wx.ALL, 5)
  secondSizer.Add(self.execute, 0, wx.ALL, 5)
  secondSizer.Add(close, 0, wx.ALL, 5)
  sizer.Add(firstSizer, 0, wx.ALL, 5)
  sizer.Add(secondSizer, 0, wx.ALL, 5)
  panel.SetSizer(sizer)
  self.SetClientSize(sizer.CalcMin())
Beispiel #27
0
 def __init__(self):
     super(sessionManagerWindow, self).__init__(parent=None,
                                                title=_(u"Session manager"),
                                                size=wx.DefaultSize)
     #  panelSizer = wx.BoxSizer(wx.VERTICAL)
     panel = wx.Panel(self)
     sizer = wx.BoxSizer(wx.VERTICAL)
     label = wx.StaticText(panel,
                           -1,
                           _(u"Select a twitter account to start TW Blue"),
                           size=wx.DefaultSize)
     listSizer = wx.BoxSizer(wx.HORIZONTAL)
     self.list = widgets.list(panel,
                              _(u"Account"),
                              style=wx.LC_SINGLE_SEL | wx.LC_REPORT)
     listSizer.Add(label, 0, wx.ALL, 5)
     listSizer.Add(self.list.list, 0, wx.ALL, 5)
     sizer.Add(listSizer, 0, wx.ALL, 5)
     new = wx.Button(panel, -1, _(u"New account"), size=wx.DefaultSize)
     new.Bind(wx.EVT_BUTTON, self.new_account)
     self.removeSession = wx.Button(panel, -1, _(u"Remove session"))
     self.removeSession.Disable()
     self.removeSession.Bind(wx.EVT_BUTTON, self.remove)
     ok = wx.Button(panel, wx.ID_OK, size=wx.DefaultSize)
     ok.SetDefault()
     ok.Bind(wx.EVT_BUTTON, self.ok)
     cancel = wx.Button(panel, wx.ID_CANCEL, size=wx.DefaultSize)
     buttons = wx.BoxSizer(wx.HORIZONTAL)
     buttons.Add(new, 0, wx.ALL, 5)
     buttons.Add(self.removeSession, 0, wx.ALL, 5)
     buttons.Add(ok, 0, wx.ALL, 5)
     buttons.Add(cancel, 0, wx.ALL, 5)
     sizer.Add(buttons, 0, wx.ALL, 5)
     panel.SetSizer(sizer)
     self.fill_list()
     min = sizer.CalcMin()
     self.SetClientSize(min)
Beispiel #28
0
 def create_list(self):
  self.list = widgets.list(self, _(u"Trending topic"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_VRULES)
  if self.system == "Windows":
   self.list.set_windows_size(0, 30)
   self.list.set_size()
Beispiel #29
0
 def create_list(self):
     self.list = widgets.list(self,
                              _(u"User"),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL,
                              size=(800, 800))
Beispiel #30
0
 def create_list(self):
  """ Returns the list for put the tweets here."""
  self.list = widgets.list(self, _(u"User"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL, size=(800, 800))
Beispiel #31
0
 def create_list(self):
  """ Returns the list for put the tweets here."""
  self.list = widgets.list(self, _(u"Trending topic"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL|wx.LC_VRULES)
  self.list.set_windows_size(0, 30)
  self.list.set_size()
Beispiel #32
0
 def create_list(self):
     """ Returns the list for put the tweets here."""
     self.list = widgets.list(self,
                              _(u"User"),
                              style=wx.LC_REPORT | wx.LC_SINGLE_SEL,
                              size=(800, 800))
Beispiel #33
0
 def create_list(self):
  self.list = widgets.list(self, _(u"User"), style=wx.LC_REPORT|wx.LC_SINGLE_SEL, size=(800, 800))