Disabled audio playback

This commit is contained in:
2017-05-12 12:06:53 +04:00
parent ead1f186f0
commit d4fa723155
4 changed files with 34 additions and 21 deletions

View File

@@ -16,11 +16,11 @@ class timelineDialog(widgetUtils.BaseDialog):
userSizer.Add(self.cb, 0, wx.ALL, 5)
actionsstatic = wx.StaticBox(panel, label=_(u"Buffer type"))
self.wall = wx.RadioButton(panel, wx.NewId(), _(u"&Wall posts"), style=wx.RB_GROUP)
self.audio = wx.RadioButton(panel, wx.NewId(), _(u"Audio"))
# self.audio = wx.RadioButton(panel, wx.NewId(), _(u"Audio"))
self.friends = wx.RadioButton(panel, wx.NewId(), _(u"Friends"))
radioSizer = wx.StaticBoxSizer(actionsstatic, wx.HORIZONTAL)
radioSizer.Add(self.wall, 0, wx.ALL, 5)
radioSizer.Add(self.audio, 0, wx.ALL, 5)
# radioSizer.Add(self.audio, 0, wx.ALL, 5)
radioSizer.Add(self.friends, 0, wx.ALL, 5)
sizer.Add(radioSizer, 0, wx.ALL, 5)
ok = wx.Button(panel, wx.ID_OK, _(u"&OK"))
@@ -37,9 +37,9 @@ class timelineDialog(widgetUtils.BaseDialog):
return self.cb.GetValue()
def get_buffer_type(self):
if self.audio.GetValue() == True:
return "audio"
elif self.wall.GetValue() == True:
# if self.audio.GetValue() == True:
# return "audio"
if self.wall.GetValue() == True:
return "wall"
elif self.friends.GetValue() == True:
return "friends"