def __init__(self, id, dllid=None): """ id is the resource ID, or a template dllid may be None, a dll object, or a string with a dll name """ # must take a reference to the DLL until InitDialog. self.dll = dllFromDll(dllid) if type(id) == type([]): # a template dlg = win32ui.CreateDialogIndirect(id) else: dlg = win32ui.CreateDialog(id, self.dll) window.Wnd.__init__(self, dlg) self.HookCommands() self.bHaveInit = None
def test1(): win32ui.CreateDialogIndirect(MakeDlgTemplate()).DoModal()