Removed count for audio buffers in config GUI
This commit is contained in:
parent
ad57be052e
commit
69cd540329
@ -13,13 +13,6 @@ class general(wx.Panel, widgetUtils.BaseDialog):
|
|||||||
box1.Add(lbl1, 0, wx.ALL, 5)
|
box1.Add(lbl1, 0, wx.ALL, 5)
|
||||||
box1.Add(self.wall_buffer_count, 0, wx.ALL, 5)
|
box1.Add(self.wall_buffer_count, 0, wx.ALL, 5)
|
||||||
sizer.Add(box1, 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)"))
|
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 = wx.SpinCtrl(self, wx.NewId())
|
||||||
self.video_buffers_count.SetRange(1, 200)
|
self.video_buffers_count.SetRange(1, 200)
|
||||||
|
@ -122,4 +122,11 @@ class mainWindow(wx.Frame):
|
|||||||
wx.adv.AboutBox(info)
|
wx.adv.AboutBox(info)
|
||||||
|
|
||||||
def remove_buffer(self, pos):
|
def remove_buffer(self, pos):
|
||||||
self.tb.DeletePage(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()
|
Loading…
Reference in New Issue
Block a user