Added grouping sizer to te search dialogue

This commit is contained in:
Manuel Cortez 2016-04-08 05:41:40 -05:00
parent e8f8e65b64
commit 9d66064a17

View File

@ -20,9 +20,10 @@ class searchAudioDialog(widgetUtils.BaseDialog):
sizer.Add(self.auto_complete, 0, wx.ALL, 5)
self.lyrics = wx.CheckBox(panel, wx.NewId(), _(u"Search only songs with associated &lyrics"))
sizer.Add(self.lyrics, 0, wx.ALL, 5)
self.artist_only = wx.RadioButton(panel, wx.NewId(), _(u"Search all songs with this title"), style=wx.RB_GROUP)
self.audios = wx.RadioButton(panel, wx.NewId(), _(u"Search audios of this artist"))
radioSizer = wx.BoxSizer(wx.HORIZONTAL)
staticbox = wx.StaticBox(panel, label=_(u"Search by"))
self.artist_only = wx.RadioButton(panel, wx.NewId(), _(u"&Title"), style=wx.RB_GROUP)
self.audios = wx.RadioButton(panel, wx.NewId(), _(u"&artist"))
radioSizer = wx.StaticBoxSizer(staticbox, wx.HORIZONTAL)
radioSizer.Add(self.artist_only, 0, wx.ALL, 5)
radioSizer.Add(self.audios, 0, wx.ALL, 5)
sizer.Add(radioSizer, 0, wx.ALL, 5)