[pywin32-checkins] pywin32/Pythonwin/pywin/dialogs status.py, 1.3.4.2, 1.3.4.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-03 04:07:25
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/dialogs In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19899/pythonwin/pywin/dialogs Modified Files: Tag: py3k status.py Log Message: change how WinThread is imported to work around a 2to3 bug. Index: status.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/dialogs/status.py,v retrieving revision 1.3.4.2 retrieving revision 1.3.4.3 diff -C2 -d -r1.3.4.2 -r1.3.4.3 *** status.py 29 Aug 2008 06:44:50 -0000 1.3.4.2 --- status.py 3 Oct 2008 04:07:12 -0000 1.3.4.3 *************** *** 1,5 **** # No cancel button. ! from pywin.mfc import dialog, thread import threading import win32ui --- 1,6 ---- # No cancel button. ! from pywin.mfc import dialog ! from pywin.mfc.thread import WinThread import threading import win32ui *************** *** 153,157 **** self._Send(MYWM_SET) ! class ProgressThread(thread.WinThread): def __init__(self, title, msg = "", maxticks = 100, tickincr = 1): self.title = title --- 154,158 ---- self._Send(MYWM_SET) ! class ProgressThread(WinThread): def __init__(self, title, msg = "", maxticks = 100, tickincr = 1): self.title = title *************** *** 160,164 **** self.tickincr = tickincr self.dialog = None ! thread.WinThread.__init__(self) self.createdEvent = threading.Event() --- 161,165 ---- self.tickincr = tickincr self.dialog = None ! WinThread.__init__(self) self.createdEvent = threading.Event() *************** *** 171,175 **** pass self.createdEvent.set() ! return thread.WinThread.InitInstance(self) def ExitInstance(self): --- 172,176 ---- pass self.createdEvent.set() ! return WinThread.InitInstance(self) def ExitInstance(self): |