Added all the thirdparty code.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@11 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Thread and application objects
|
||||
|
||||
import object
|
||||
import win32ui
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user