AIM-PIbd-32-Kurbanova-A-A/aimenv/Lib/site-packages/pythonwin/pywin/mfc/thread.py

26 lines
588 B
Python
Raw Normal View History

2024-10-02 22:15:59 +04:00
# Thread and application objects
import win32ui
from . import object
class WinThread(object.CmdTarget):
def __init__(self, initObj=None):
if initObj is None:
initObj = win32ui.CreateThread()
object.CmdTarget.__init__(self, initObj)
def InitInstance(self):
pass # Default None/0 return indicates success for InitInstance()
def ExitInstance(self):
pass
class WinApp(WinThread):
def __init__(self, initApp=None):
if initApp is None:
initApp = win32ui.GetApp()
WinThread.__init__(self, initApp)