MCPcopy Create free account
hub / github.com/mhammond/pywin32 / OnInitDialog

Method OnInitDialog

Pythonwin/pywin/framework/scriptutils.py:43–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.HookCommand(self.OnBrowse, win32ui.IDC_BUTTON2)
42 self.bHaveDebugger = bHaveDebugger
43 def OnInitDialog(self):
44 rc = dialog.Dialog.OnInitDialog(self)
45 cbo = self.GetDlgItem(win32ui.IDC_COMBO1)
46 for o in debugging_options:
47 cbo.AddString(o)
48 cbo.SetCurSel(self['debuggingType'])
49 if not self.bHaveDebugger:
50 cbo.EnableWindow(0)
51
52 def OnBrowse(self, id, cmd):
53 openFlags = win32con.OFN_OVERWRITEPROMPT|win32con.OFN_FILEMUSTEXIST

Callers

nothing calls this directly

Calls 1

AddStringMethod · 0.80

Tested by

no test coverage detected