mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 14:06:07 -04:00
Made code indentation to comply with PEP8
This commit is contained in:
@@ -4,22 +4,22 @@ import wx
|
||||
from multiplatform_widgets import widgets
|
||||
|
||||
class eventsPanel(wx.Panel):
|
||||
""" Buffer to show events. Different than tweets or people."""
|
||||
""" Buffer to show events. Different than tweets or people."""
|
||||
|
||||
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"))
|
||||
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"))
|
||||
|
||||
def set_position(self, reversed=False):
|
||||
if reversed == False:
|
||||
self.list.select_item(self.list.get_count()-1)
|
||||
else:
|
||||
self.list.select_item(0)
|
||||
def set_position(self, reversed=False):
|
||||
if reversed == False:
|
||||
self.list.select_item(self.list.get_count()-1)
|
||||
else:
|
||||
self.list.select_item(0)
|
||||
|
||||
def set_focus_in_list(self):
|
||||
self.list.list.SetFocus()
|
||||
def set_focus_in_list(self):
|
||||
self.list.list.SetFocus()
|
||||
|
Reference in New Issue
Block a user