Change all <> to !=

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-01-01 04:23:33 +00:00
parent 8c45c8411a
commit 6faf213a76
8 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ def leapdays(y1, y2):
# Return 1 for leap years, 0 for non-leap years
def isleap(year):
return year % 4 == 0 and (year % 100 <> 0 or year % 400 == 0)
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
def FillDate(val):
s = str(val)

View File

@@ -254,7 +254,7 @@ class ButtonTreeCtrlPanel(wx.Panel):
self._doLogicTest(style, value, item)
if value <> data[0]:
if value != data[0]:
nevt = ButtonTreeCtrlPanelEvent(obj=self, id=self.GetId(),
item=item, val=value)
wx.PostEvent(self, nevt)

View File

@@ -829,7 +829,7 @@ class Calendar( wx.Control ):
ts = newDate - curDate
delta = ts.GetDays()
if delta <> None:
if delta != None:
curDate = wx.DateTime.FromDMY(int(self.cal_days[self.sel_key]),self.month - 1,self.year)
timeSpan = wx.TimeSpan.Days(delta)
newDate = curDate + timeSpan

View File

@@ -2515,7 +2515,7 @@ class ScaledBitmap2(TextObjectMixin, DrawObject, ):
H = ScaleWorldToPixel(self.Height)[0]
W = H * (self.bmpWidth / self.bmpHeight)
if (self.ScaledBitmap is None) or (self.ScaledBitmap[0] != (0, 0, self.bmpWidth, self.bmpHeight, W, H) ):
#if True: #fixme: (self.ScaledBitmap is None) or (H <> self.ScaledHeight) :
#if True: #fixme: (self.ScaledBitmap is None) or (H != self.ScaledHeight) :
self.ScaledHeight = H
#print("Scaling to:", W, H)
Img = self.Image.Scale(W, H)

View File

@@ -138,7 +138,7 @@ class pdfButtonPanel(bp.ButtonPanel):
"""
self.pageno = pagenum + 1
self.page.SetValue('%d' % self.pageno)
if numpages <> self.numpages:
if numpages != self.numpages:
self.maxlabel.SetLabel('of %d' % numpages)
self.numpages = numpages
self.percentzoom = zoomscale * 100
@@ -197,7 +197,7 @@ class pdfButtonPanel(bp.ButtonPanel):
try:
newpage = int(self.page.GetValue())
if 1 <= newpage <= self.numpages:
if newpage <> self.pageno:
if newpage != self.pageno:
self.pageno = newpage
self.ChangePage()
except ValueError:

View File

@@ -221,7 +221,7 @@ class dcGraphicsContext(object):
g = self.gstate
a, b, c, d, e, f = map(float, matrix.Get())
g.Translate(e, f)
if d == a and c == -b and b <> 0:
if d == a and c == -b and b != 0:
g.Rotate(a, b)
else:
g.Scale(a, d)
@@ -390,7 +390,7 @@ class dcGraphicsPath(object):
if parent:
self.gstate = parent.gstate
self.fillcolour = parent._context.GetBrush().GetColour()
self.isfilled = parent._context.GetBrush().GetStyle() <> wx.TRANSPARENT
self.isfilled = parent._context.GetBrush().GetStyle() != wx.TRANSPARENT
def AddCurveToPoint(self, cx1, cy1, cx2, cy2, x, y):
"""

View File

@@ -366,7 +366,7 @@ class pdfViewer(wx.ScrolledWindow):
self.cur_frompage = self.frompage
self.cur_topage = self.topage
else: # page range unchanged? whole visible area will always be inside page buffer
if self.frompage <> self.cur_frompage or self.topage <> self.cur_topage:
if self.frompage != self.cur_frompage or self.topage != self.cur_topage:
force = True # due to page buffer change
self.cur_frompage = self.frompage
self.cur_topage = self.topage
@@ -1031,7 +1031,7 @@ def _AsciiBase85DecodePYTHON(input):
# special rules apply if not a multiple of five bytes.
whole_word_count, remainder_size = divmod(len(stripped), 5)
#print('%d words, %d leftover' % (whole_word_count, remainder_size))
#assert remainder_size <> 1, 'invalid Ascii 85 stream!'
#assert remainder_size != 1, 'invalid Ascii 85 stream!'
cut = 5 * whole_word_count
body, lastbit = stripped[0:cut], stripped[cut:]

View File

@@ -106,7 +106,7 @@ class Ticker(wx.Control):
def SetDirection(self, dir):
"""Sets the direction of the ticker: right to left(rtl) or left to right (ltr)"""
if dir == "ltr" or dir == "rtl":
if self._offset <> 0:
if self._offset != 0:
#Change the offset so it's correct for the new direction
self._offset = self._extent[0] + self.GetSize()[0] - self._offset
self._dir = dir