Removed count for audio buffers in config GUI

This commit is contained in:
Manuel Cortez 2018-12-10 00:45:56 -06:00
parent ad57be052e
commit 69cd540329
2 changed files with 8 additions and 8 deletions

View File

@ -13,13 +13,6 @@ class general(wx.Panel, widgetUtils.BaseDialog):
box1.Add(lbl1, 0, wx.ALL, 5)
box1.Add(self.wall_buffer_count, 0, wx.ALL, 5)
sizer.Add(box1, 0, wx.ALL, 5)
lbl2 = wx.StaticText(self, wx.NewId(), _(u"Number of items to load in audio buffers (maximun 1000)"))
self.audio_buffers_count = wx.SpinCtrl(self, wx.NewId())
self.audio_buffers_count.SetRange(1, 1000)
box2 = wx.BoxSizer(wx.HORIZONTAL)
box2.Add(lbl2, 0, wx.ALL, 5)
box2.Add(self.audio_buffers_count, 0, wx.ALL, 5)
sizer.Add(box2, 0, wx.ALL, 5)
lbl3 = wx.StaticText(self, wx.NewId(), _(u"Number of items to load in video buffers (maximun 200)"))
self.video_buffers_count = wx.SpinCtrl(self, wx.NewId())
self.video_buffers_count.SetRange(1, 200)

View File

@ -123,3 +123,10 @@ class mainWindow(wx.Frame):
def remove_buffer(self, pos):
self.tb.DeletePage(pos)
def notify(self, title, text):
try:
self.notification = wx.adv.NotificationMessage(title, text, parent=self)
except AttributeError:
self.notification = wx.NotificationMessage(title, text)
self.notification.Show()