Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

thread.py 588B

1 year ago
12345678910111213141516171819202122232425
  1. # Thread and application objects
  2. import win32ui
  3. from . import object
  4. class WinThread(object.CmdTarget):
  5. def __init__(self, initObj=None):
  6. if initObj is None:
  7. initObj = win32ui.CreateThread()
  8. object.CmdTarget.__init__(self, initObj)
  9. def InitInstance(self):
  10. pass # Default None/0 return indicates success for InitInstance()
  11. def ExitInstance(self):
  12. pass
  13. class WinApp(WinThread):
  14. def __init__(self, initApp=None):
  15. if initApp is None:
  16. initApp = win32ui.GetApp()
  17. WinThread.__init__(self, initApp)