Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2444/Pythonwin/pywin/Demos
Modified Files:
threadedgui.py
Log Message:
tweaks to locals named 'thread', 'window' or 'dialog' to be 2to3-friendly
Index: threadedgui.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/Demos/threadedgui.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** threadedgui.py 2 Oct 2008 11:13:28 -0000 1.4
--- threadedgui.py 4 Dec 2008 07:00:21 -0000 1.5
***************
*** 9,12 ****
--- 9,13 ----
from pywin.mfc import window, docview, thread
+ from pywin.mfc.thread import WinThread
***************
*** 104,112 ****
! class TestThread(thread.WinThread):
def __init__(self, parentWindow):
self.parentWindow = parentWindow
self.child = None
! thread.WinThread.__init__(self)
def InitInstance(self):
rect = self.parentWindow.GetClientRect()
--- 105,113 ----
! class TestThread(WinThread):
def __init__(self, parentWindow):
self.parentWindow = parentWindow
self.child = None
! WinThread.__init__(self)
def InitInstance(self):
rect = self.parentWindow.GetClientRect()
***************
*** 116,120 ****
self.child.Create("FontDemo", win32con.WS_CHILD | win32con.WS_VISIBLE, rect, self.parentWindow)
self.SetMainFrame(self.child)
! return thread.WinThread.InitInstance(self)
def ExitInstance(self):
--- 117,121 ----
self.child.Create("FontDemo", win32con.WS_CHILD | win32con.WS_VISIBLE, rect, self.parentWindow)
self.SetMainFrame(self.child)
! return WinThread.InitInstance(self)
def ExitInstance(self):
|