-# A convenient wrapper around wx.TextCtrl to give it a spiffy label.
-class ExtStr(wx.Panel):
- def __init__(self, parent):
- wx.Panel.__init__(self, parent, -1)
- sizer = wx.StaticBoxSizer(wx.StaticBox(self, -1, 'Extension'), wx.HORIZONTAL)
- self.ctl = wx.TextCtrl(self, -1, value="wav", style = wx.TE_PROCESS_ENTER )
- sizer.Add(self.ctl, 0, wx.ALL | wx.EXPAND | wx.ALIGN_CENTER, 3)
- self.Enable(True)
-
- self.SetSizer(sizer)
- sizer.Fit(self)
-
- def Enable(self, value):
- self.ctl.Enable(value)
-
- def SetValue(self, value):
- self.ctl.SetValue(value)
-
- def GetValue(self):
- return(self.ctl.GetValue())
-
-