- btn5 = wx.Button(self, -1, "Stop")
- self.Bind(wx.EVT_BUTTON, self.OnStop, btn5)
+ btn4 = wx.Button(self, -1, "Stop")
+ self.Bind(wx.EVT_BUTTON, self.OnStop, btn4)
+
+ btn5 = wx.ToggleButton(self, -1, "Loop")
+ self.Bind(wx.EVT_TOGGLEBUTTON, self.OnLoopToggle, btn5)
+
+ slider = wx.Slider(self, -1, 0, 0, 0)
+ self.slider = slider
+ self.Bind(wx.EVT_SLIDER, self.OnSeek, slider)