mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Remove use of <> operator in demos and fix MediaCtrl demo
This commit is contained in:
@@ -11,7 +11,7 @@ class StaticText(wx.StaticText):
|
||||
updated very frequently otherwise.
|
||||
"""
|
||||
def SetLabel(self, label):
|
||||
if label <> self.GetLabel():
|
||||
if label != self.GetLabel():
|
||||
wx.StaticText.SetLabel(self, label)
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
@@ -13,7 +13,7 @@ class StaticText(wx.StaticText):
|
||||
updated very frequently otherwise.
|
||||
"""
|
||||
def SetLabel(self, label):
|
||||
if label <> self.GetLabel():
|
||||
if label != self.GetLabel():
|
||||
wx.StaticText.SetLabel(self, label)
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
@@ -33,7 +33,7 @@ class TestPanel(wx.Panel):
|
||||
# default for this demo.
|
||||
backend = wx.media.MEDIABACKEND_QUICKTIME
|
||||
|
||||
self.mc = wx.media.PreMediaCtrl()
|
||||
self.mc = wx.media.MediaCtrl()
|
||||
ok = self.mc.Create(self, style=wx.SIMPLE_BORDER,
|
||||
szBackend=backend)
|
||||
if not ok:
|
||||
|
||||
Reference in New Issue
Block a user