]> git.saurik.com Git - wxWidgets.git/commitdiff
Loop doesn't exist any more
authorRobin Dunn <robin@alldunn.com>
Thu, 12 May 2005 17:13:19 +0000 (17:13 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 12 May 2005 17:13:19 +0000 (17:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/MediaCtrl.py

index fe9cb74185453a86b24e53bea6ebb679d9f9509f..3c0f6c39b0c271759b596a84c7eafc26ebbc631f 100644 (file)
@@ -32,9 +32,6 @@ class TestPanel(wx.Panel):
         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)
@@ -51,7 +48,6 @@ class TestPanel(wx.Panel):
         sizer.Add(btn2, (2,3))
         sizer.Add(btn3, (3,3))
         sizer.Add(btn4, (4,3))
-        sizer.Add(btn5, (5,3))
         sizer.Add(slider, (6,1), flag=wx.EXPAND)
         sizer.Add(self.st_size, (1, 5))
         sizer.Add(self.st_len,  (2, 5))
@@ -89,11 +85,6 @@ class TestPanel(wx.Panel):
             self.mc.Play()
         
     
-    def OnLoopToggle(self, evt):
-        btn = evt.GetEventObject()
-        self.mc.Loop(btn.GetValue())
-                     
-    
     def OnPlay(self, evt):
         self.mc.Play()