projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed a couple of useless #if wxUSE_UNICODE tests
[wxWidgets.git]
/
wxPython
/
wx
/
py
/
editor.py
diff --git
a/wxPython/wx/py/editor.py
b/wxPython/wx/py/editor.py
index 8dc8981798ee788fb12aaf4bbb7a5b881c955811..b21c691193c21238b43c37e2d5d31132fdb5b917 100644
(file)
--- a/
wxPython/wx/py/editor.py
+++ b/
wxPython/wx/py/editor.py
@@
-643,7
+643,7
@@
class Editor:
Only receives an event if OnKeyDown calls event.Skip() for the
corresponding event."""
Only receives an event if OnKeyDown calls event.Skip() for the
corresponding event."""
- key = event.KeyCode()
+ key = event.
Get
KeyCode()
if key in self.autoCompleteKeys:
# Usually the dot (period) key activates auto completion.
if self.window.AutoCompActive():
if key in self.autoCompleteKeys:
# Usually the dot (period) key activates auto completion.
if self.window.AutoCompActive():
@@
-671,7
+671,7
@@
class Editor:
def OnKeyDown(self, event):
"""Key down event handler."""
def OnKeyDown(self, event):
"""Key down event handler."""
- key = event.KeyCode()
+ key = event.
Get
KeyCode()
# If the auto-complete window is up let it do its thing.
if self.window.AutoCompActive():
event.Skip()
# If the auto-complete window is up let it do its thing.
if self.window.AutoCompActive():
event.Skip()
@@
-805,7
+805,7
@@
def openMultiple(parent=None, title='Open', directory='', filename='',
def saveSingle(parent=None, title='Save', directory='', filename='',
wildcard='All Files (*.*)|*.*',
def saveSingle(parent=None, title='Save', directory='', filename='',
wildcard='All Files (*.*)|*.*',
- style=wx.SAVE | wx.
HIDE_READONLY | wx.
OVERWRITE_PROMPT):
+ style=wx.SAVE | wx.OVERWRITE_PROMPT):
"""File dialog wrapper function."""
dialog = wx.FileDialog(parent, title, directory, filename,
wildcard, style)
"""File dialog wrapper function."""
dialog = wx.FileDialog(parent, title, directory, filename,
wildcard, style)