Example #1
0
	def create_attachments(self):
		lbl = wx.StaticText(self.panel, -1, _(u"Attachments"))
		self.attachments = widgetUtils.list(self.panel, _(u"Type"), _(u"Title"), style=wx.LC_REPORT)
		box = wx.BoxSizer(wx.HORIZONTAL)
		box.Add(lbl, 0, wx.ALL, 5)
		box.Add(self.attachments.list, 0, wx.ALL, 5)
		return box
Example #2
0
	def create_list(self):
		self.lbl = wx.StaticText(self, wx.NewId(), _(u"Friends"))
		self.list = widgetUtils.list(self, *[_(u"Name"), _(u"Last seen")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 190)
		self.list.set_windows_size(1, 100)
		self.list.set_size()
		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
Example #3
0
	def __init__(self):
		super(attachDialog, self).__init__(None,  title=_(u"Add an attachment"))
		panel = wx.Panel(self)
		sizer = wx.BoxSizer(wx.VERTICAL)
		lbl1 = wx.StaticText(panel, wx.NewId(), _(u"Attachments"))
		self.attachments = widgetUtils.list(panel, _(u"Type"), _(u"Title"), style=wx.LC_REPORT)
		box = wx.BoxSizer(wx.HORIZONTAL)
		box.Add(lbl1, 0, wx.ALL, 5)
		box.Add(self.attachments.list, 0, wx.ALL, 5)
		sizer.Add(box, 0, wx.ALL, 5)
		static = wx.StaticBox(panel, label=_(u"Add attachments"))
		self.photo = wx.Button(panel, wx.NewId(), _(u"&Photo"))
		self.remove = wx.Button(panel, wx.NewId(), _(u"Remove attachment"))
		self.remove.Enable(False)
		btnsizer = wx.StaticBoxSizer(static, wx.HORIZONTAL)
		btnsizer.Add(self.photo, 0, wx.ALL, 5)
		sizer.Add(btnsizer, 0, wx.ALL, 5)
		ok = wx.Button(panel, wx.ID_OK)
		ok.SetDefault()
		cancelBtn = wx.Button(panel, wx.ID_CANCEL)
		btnSizer = wx.BoxSizer()
		btnSizer.Add(ok, 0, wx.ALL, 5)
		btnSizer.Add(cancelBtn, 0, wx.ALL, 5)
		sizer.Add(btnSizer, 0, wx.ALL, 5)
		panel.SetSizer(sizer)
		self.SetClientSize(sizer.CalcMin())
Example #4
0
	def create_comments_list(self):
		lbl = wx.StaticText(self.panel, -1, _(u"Comments"))
		self.comments = widgetUtils.list(self.panel, _(u"User"), _(u"Comment"), _(u"Date"), _(u"Likes"), style=wx.LC_REPORT)
		box = wx.BoxSizer(wx.HORIZONTAL)
		box.Add(lbl, 0, wx.ALL, 5)
		box.Add(self.comments.list, 0, wx.ALL, 5)
		return box
Example #5
0
	def create_list(self):
		self.list = widgetUtils.list(self, *[_(u"User"), _(u"Text"), _(u"Date")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 80)
		self.list.set_windows_size(1, 190)
		self.list.set_windows_size(2, 40)
		self.list.set_size()
		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
Example #6
0
	def create_list(self):
		self.lbl = wx.StaticText(self, wx.NewId(), _(u"Po&sts"))
		self.list = widgetUtils.list(self, *[_(u"User"), _(u"Text"), _(u"Date")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 200)
		self.list.set_windows_size(1, 300)
		self.list.set_windows_size(2, 250)
		self.list.set_size()
		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
Example #7
0
	def create_list(self):
		self.lbl = wx.StaticText(self, wx.NewId(), _(u"Mu&sic"))
		self.list = widgetUtils.list(self, *[_(u"Title"), _(u"Artist"), _(u"Duration")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 160)
		self.list.set_windows_size(1, 380)
		self.list.set_windows_size(2, 80)
		self.list.set_size()
		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
Example #8
0
	def create_list(self):
		self.list = widgetUtils.list(self, *[_(u"User"), _(u"Name"), _(u"Description"), _(u"Photos"), _(u"Created at")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 190)
		self.list.set_windows_size(1, 320)
		self.list.set_windows_size(2, 513)
		self.list.set_windows_size(3, 390)
		self.list.set_windows_size(4, 180)
		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
Example #9
0
	def create_controls(self):
		lbl1 = wx.StaticText(self, wx.NewId(), _(u"History"))
		self.list = widgetUtils.list(self, *[_(u"post")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 190)
#		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
		box = wx.BoxSizer(wx.HORIZONTAL)
		box.Add(lbl1, 0, wx.ALL, 5)
		box.Add(self.list.list, 0, wx.ALL, 5)
		return box
Example #10
0
	def __init__(self):
		super(friendship, self).__init__(parent=None)
		panel = wx.Panel(self)
		sizer = wx.BoxSizer(wx.VERTICAL)
		self.friends = widgetUtils.list(panel, [_(u"Friend")], style=wx.LC_REPORT)
		sizer.Add(self.friends.list, 0, wx.ALL, 5)
		close = wx.Button(panel, wx.ID_CANCEL)
		btnbox = wx.BoxSizer(wx.HORIZONTAL)
		btnbox.Add(close, 0, wx.ALL, 5)
		sizer.Add(btnbox, 0, wx.ALL, 5)
		panel.SetSizer(sizer)
		self.SetClientSize(sizer.CalcMin())
Example #11
0
 def __init__(self):
  super(sessionManagerWindow, self).__init__("Session Manager", None, 0, (Gtk.STOCK_OK, widgetUtils.OK, Gtk.STOCK_CANCEL, widgetUtils.CANCEL))
  self.list = widgetUtils.list("Session")
  self.box.add(self.list.list)
  btnBox = Gtk.Box(spacing=6)
  self.new = Gtk.Button("New account")
  self.remove = Gtk.Button("Remove account")
  self.configuration = Gtk.Button("Configuration")
  btnBox.add(self.new)
  btnBox.add(self.remove)
  btnBox.add(self.configuration)
  self.box.add(btnBox)
  self.show_all()
Example #12
0
 def __init__(self, actions):
  super(soundsTutorialDialog, self).__init__("Sounds tutorial", None, 0, (Gtk.STOCK_CANCEL, widgetUtils.CANCEL))
  box = self.get_content_area()
  label = Gtk.Label("Press enter for listen the sound")
  self.list = widgetUtils.list("Action")
  self.populate_actions(actions)
  lBox = Gtk.Box(spacing=6)
  lBox.add(label)
  lBox.add(self.list.list)
  box.add(lBox)
  self.play = Gtk.Button("Play")
  box.add(self.play)
  self.show_all()
Example #13
0
 def __init__(self):
     super(sessionManagerWindow,
           self).__init__("Session Manager", None, 0,
                          (Gtk.STOCK_OK, widgetUtils.OK, Gtk.STOCK_CANCEL,
                           widgetUtils.CANCEL))
     self.list = widgetUtils.list("Session")
     self.box.add(self.list.list)
     btnBox = Gtk.Box(spacing=6)
     self.new = Gtk.Button("New account")
     self.remove = Gtk.Button("Remove account")
     self.configuration = Gtk.Button("Configuration")
     btnBox.add(self.new)
     btnBox.add(self.remove)
     btnBox.add(self.configuration)
     self.box.add(btnBox)
     self.show_all()
Example #14
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", size=wx.DefaultSize)
		listSizer = wx.BoxSizer(wx.HORIZONTAL)
		self.list = widgetUtils.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"))
		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(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)
Example #15
0
	def create_list(self):
		self.list = widgetUtils.list(self, *[_(u"Notification")], style=wx.LC_REPORT)
		self.list.set_windows_size(0, 190)
		self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)