Added shorcuts to most common actions in GUI elements
This commit is contained in:
@@ -6,7 +6,7 @@ from pubsub import pub
|
||||
class homeTab(wx.Panel):
|
||||
|
||||
def create_list(self):
|
||||
self.lbl = wx.StaticText(self, wx.NewId(), _(u"Posts"))
|
||||
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, 80)
|
||||
self.list.set_windows_size(1, 190)
|
||||
@@ -15,7 +15,7 @@ class homeTab(wx.Panel):
|
||||
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
||||
|
||||
def create_post_buttons(self):
|
||||
self.post = wx.Button(self, -1, _(u"Post"))
|
||||
self.post = wx.Button(self, -1, _(u"&Post"))
|
||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||
|
||||
@@ -49,7 +49,7 @@ class feedTab(homeTab):
|
||||
|
||||
class audioTab(homeTab):
|
||||
def create_list(self):
|
||||
self.lbl = wx.StaticText(self, wx.NewId(), _(u"Music"))
|
||||
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, 80)
|
||||
self.list.set_windows_size(1, 190)
|
||||
@@ -58,9 +58,9 @@ class audioTab(homeTab):
|
||||
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
||||
|
||||
def create_post_buttons(self):
|
||||
self.post = wx.Button(self, -1, _(u"Post"))
|
||||
self.play = wx.Button(self, -1, _(u"Play"))
|
||||
self.play_all = wx.Button(self, -1, _(u"Play All"))
|
||||
self.post = wx.Button(self, -1, _(u"&Post"))
|
||||
self.play = wx.Button(self, -1, _(u"P&lay"))
|
||||
self.play_all = wx.Button(self, -1, _(u"Play &All"))
|
||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
||||
|
Reference in New Issue
Block a user