diff options
Diffstat (limited to 'Mac/Tools/IDE/PyEdit.py')
-rw-r--r-- | Mac/Tools/IDE/PyEdit.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index 2117fc4..fcbdc09 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -17,6 +17,12 @@ import string import marshal import re +if hasattr(Win, "FrontNonFloatingWindow"): + MyFrontWindow = Win.FrontNonFloatingWindow +else: + MyFrontWindow = Win.FrontWindow + + try: import Wthreading except ImportError: @@ -1189,7 +1195,7 @@ def _filename_as_modname(fname): return string.join(string.split(modname, '.'), '_') def findeditor(topwindow, fromtop = 0): - wid = Win.FrontWindow() + wid = MyFrontWindow() if not fromtop: if topwindow.w and wid == topwindow.w.wid: wid = topwindow.w.wid.GetNextWindow() |