projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't define specifyLevel variable in release builds (fixes gcc and probably others...
[wxWidgets.git]
/
wxPython
/
wx
/
py
/
editwindow.py
diff --git
a/wxPython/wx/py/editwindow.py
b/wxPython/wx/py/editwindow.py
index 78b75f5ccf3d5076eda48891ef50bdf9109a2afe..26c419c696d483ef0a5fd01251db65d0dd789050 100644
(file)
--- a/
wxPython/wx/py/editwindow.py
+++ b/
wxPython/wx/py/editwindow.py
@@
-244,10
+244,6
@@
class EditWindow(stc.StyledTextCtrl):
def GetSelection(self):
return self.GetAnchor(), self.GetCurrentPos()
def GetSelection(self):
return self.GetAnchor(), self.GetCurrentPos()
- def SetSelection(self, start, end):
- self.SetSelectionStart(start)
- self.SetSelectionEnd(end)
-
def ShowPosition(self, pos):
line = self.LineFromPosition(pos)
#self.EnsureVisible(line)
def ShowPosition(self, pos):
line = self.LineFromPosition(pos)
#self.EnsureVisible(line)
@@
-255,13
+251,13
@@
class EditWindow(stc.StyledTextCtrl):
def DoFindNext(self, findData, findDlg=None):
backward = not (findData.GetFlags() & wx.FR_DOWN)
def DoFindNext(self, findData, findDlg=None):
backward = not (findData.GetFlags() & wx.FR_DOWN)
- matchcase =
findData.GetFlags() & wx.FR_MATCHCASE
+ matchcase =
(findData.GetFlags() & wx.FR_MATCHCASE) != 0
end = self.GetLastPosition()
textstring = self.GetRange(0, end)
findstring = findData.GetFindString()
if not matchcase:
end = self.GetLastPosition()
textstring = self.GetRange(0, end)
findstring = findData.GetFindString()
if not matchcase:
- textstring.lower()
- findstring.lower()
+ textstring
= textstring
.lower()
+ findstring
= findstring
.lower()
if backward:
start = self.GetSelection()[0]
loc = textstring.rfind(findstring, 0, start)
if backward:
start = self.GetSelection()[0]
loc = textstring.rfind(findstring, 0, start)