def d(): dlg = win32ui.CreateDialog(win32ui.IDD_DEBUGGER) dlg.datalist.append((win32ui.IDC_DBG_RADIOSTACK, "radio")) print("data list is ", dlg.datalist) dlg.data["radio"] = 1 dlg.DoModal() print(dlg.data["radio"])
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