Remove use of <> operator in demos and fix MediaCtrl demo

This commit is contained in:
Scott Talbert
2016-05-05 22:50:56 -04:00
parent f780b21688
commit b7625ccb01
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
#----------------------------------------------------------------------

View File

@@ -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: