Added creation of wall timelines too

This commit is contained in:
2016-04-14 17:23:08 -05:00
parent 73d9400dc8
commit 8820e59276
4 changed files with 41 additions and 11 deletions

View File

@@ -15,8 +15,10 @@ class timelineDialog(widgetUtils.BaseDialog):
userSizer.Add(userLabel, 0, wx.ALL, 5)
userSizer.Add(self.cb, 0, wx.ALL, 5)
actionsstatic = wx.StaticBox(panel, label=_(u"Buffer type"))
self.audio = wx.RadioButton(panel, wx.NewId(), _(u"&Audios"), style=wx.RB_GROUP)
self.wall = wx.RadioButton(panel, wx.NewId(), _(u"&Wall posts"), style=wx.RB_GROUP)
self.audio = wx.RadioButton(panel, wx.NewId(), _(u"&Audio"))
radioSizer = wx.StaticBoxSizer(actionsstatic, wx.HORIZONTAL)
radioSizer.Add(self.wall, 0, wx.ALL, 5)
radioSizer.Add(self.audio, 0, wx.ALL, 5)
sizer.Add(radioSizer, 0, wx.ALL, 5)
ok = wx.Button(panel, wx.ID_OK, _(u"&OK"))
@@ -34,4 +36,6 @@ class timelineDialog(widgetUtils.BaseDialog):
def get_buffer_type(self):
if self.audio.GetValue() == True:
return "audio"
return "audio"
elif self.wall.GetValue() == True:
return "wall"