some fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-07-14 05:17:27 +00:00
parent c18da485ed
commit 29963001d3
2 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,8 @@ class RunDemoApp(wxApp):
# its own top-level window
if win:
# so set the frame to a good size for showing stuff
frame.SetSize((600, 450))
frame.SetSize((640, 480))
win.SetFocus()
else:
# otherwise the demo made its own frame, so just put a

View File

@@ -141,14 +141,14 @@ class PythonSTC(wxStyledTextCtrl):
styleBefore = self.GetStyleAt(caretPos - 1)
# check before
if charBefore and charBefore in "[]{}()" and ord(styleBefore) == 10:
if charBefore and charBefore in "[]{}()" and ord(styleBefore) == SCE_P_OPERATOR:
braceAtCaret = caretPos - 1
# check after
if braceAtCaret < 0:
charAfter = self.GetCharAt(caretPos)
styleAfter = self.GetStyleAt(caretPos)
if charAfter and charAfter in "[]{}()" and ord(styleAfter) == 10:
if charAfter and charAfter in "[]{}()" and ord(styleAfter) == SCE_P_OPERATOR:
braceAtCaret = caretPos
if braceAtCaret >= 0: