Beispiel #1
0
def test4():
    page1 = dialog.PropertyPage(
        win32ui.LoadDialogResource(win32ui.IDD_PROPDEMO1))
    page2 = dialog.PropertyPage(
        win32ui.LoadDialogResource(win32ui.IDD_PROPDEMO2))
    ps = dialog.PropertySheet("Property Sheet/Page Demo", None, [page1, page2])
    ps.DoModal()
Beispiel #2
0
def test3():
    dlg = win32ui.LoadDialogResource(win32ui.IDD_SET_TABSTOPS)
    dlg[0][0] = 'New Dialog Title'
    dlg[0][1] = (80, 20, 161, 60)
    dlg[1][1] = '&Confusion:'
    cs = win32con.WS_CHILD | win32con.WS_VISIBLE | win32con.WS_TABSTOP | win32con.BS_PUSHBUTTON
    dlg.append([128, "&Help", 100, (111, 41, 40, 14), cs])
    dialog.Dialog(dlg).DoModal()
Beispiel #3
0
 def __init__(self, id):
     self._templ = win32ui.LoadDialogResource(id)
     #print self._templ
     self._header = self._templ[0]
     self._dlg_rc = self._header[1]
     if len(self._header) > 4:
         pointsize = self._header[4][0]
         fontname = self._header[4][1]
         font = findfont(fontname, pointsize)
         self._cx = font._tm['tmAveCharWidth'] + 1
         self._cy = font._tm['tmHeight']
     else:
         print 'Extented dialog templates (DIALOGEX) not supported. Check dialog with id', id
Beispiel #4
0
def configs_property_page():
    page1 = dialog.PropertyPage(win32ui.LoadDialogResource(win32ui.IDD_PROPDEMO1))
    page2 = dialog.PropertyPage(win32ui.LoadDialogResource(win32ui.IDD_PROPDEMO2))
    ps = dialog.PropertySheet('Property Sheet/Page Demo', None, [page1, page2])
    ps.DoModal()