[pywin32-checkins] pywin32/Pythonwin/pywin/debugger debugger.py,1.12,1.13
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-09-07 02:23:58
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10984 Modified Files: debugger.py Log Message: Don't die if the foreground window when we started debugging no longer exists when we end. Index: debugger.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger/debugger.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** debugger.py 7 Feb 2004 02:06:56 -0000 1.12 --- debugger.py 7 Sep 2004 02:23:49 -0000 1.13 *************** *** 833,838 **** Returns non zero if we are allowed to stop interacting""" if self.oldForeground is not None: ! win32ui.GetMainFrame().EnableWindow(self.oldFrameEnableState) ! self.oldForeground.EnableWindow(1) # self.oldForeground.SetForegroundWindow() - fails?? if not self.inForcedGUI: --- 833,842 ---- Returns non zero if we are allowed to stop interacting""" if self.oldForeground is not None: ! try: ! win32ui.GetMainFrame().EnableWindow(self.oldFrameEnableState) ! self.oldForeground.EnableWindow(1) ! except win32ui.error: ! # old window may be dead. ! pass # self.oldForeground.SetForegroundWindow() - fails?? if not self.inForcedGUI: |