示例#1
0
}

status_def = [
    ["Ready", -1],
]

body_def = [
    [
        ezwx.StyledText(expand=True, proportion=1, key="stc"), {
            'expand': True,
            'proportion': 1
        }
    ],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    window = ezwx.WxApp(u"StyledTextCtrl Demo", 600, 480)
    window.makeLayout(layout)
    window.closeHandle(onClose)
    window.run()
示例#2
0
]

body_def = [
    [
        ezwx.Button("Show Progress",
                    expand=True,
                    proportion=1,
                    handler=onButton,
                    key="button"), {
                        'expand': True,
                        'proportion': 1
                    }
    ],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    window = ezwx.WxApp(title, 120, 120)
    window.makeLayout(layout)
    window.closeHandle(onClose)
    window.run()
示例#3
0
        ezwx.Button("Browse", handler=onHomeButton),
        ezwx.Button("Start", handler=onStartButton),
    ],
    [
        ezwx.Text(expand=True,
                  proportion=1,
                  multiline=True,
                  readonly=True,
                  key="text"), {
                      'expand': True,
                      'proportion': 1
                  }
    ],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    window = ezwx.WxApp("Easy FTPServer", 600, 480)
    window.makeLayout(layout)
    window.closeHandle(onClose)
    window.run()
示例#4
0
                       proportion=1,
                       border=0)
    ],
    [
        ew.Text(expand=True,
                proportion=1,
                multiline=True,
                readonly=True,
                key="text"), {
                    'expand': True,
                    'proportion': 1
                }
    ],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp("TextFileBrowser Demo", 600, 480)
    appWin.makeLayout(layout)
    appWin.closeHandle(onClose)
    appWin.run()
示例#5
0
                                expand=True,
                                proportion=1,
                                key='book'), {
                                    'expand': True,
                                    'proportion': 1,
                                    'border': 0
                                }
    ],
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu": menu_def,
    "body": body_def,
    "status": status_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Splitter Demo", 480, 360)
    appWin.makeLayout(layout)
    appWin.closeHandle(onClose)
    initCtrls()
    appWin.run()
示例#6
0
    ],
    [
        ezwx.TimePicker(expand=True, handler=onTimeSelect2, key="time2"),
    ],
    [
        ezwx.ColorPicker(expand=True, handler=onColorSelect2, key="color2"),
    ],
    [
        ezwx.FontPicker(expand=True,
                        size=(240, 72),
                        handler=onFontSelect2,
                        key="font2"),
    ],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    window = ezwx.WxApp(u"wxPython Template", 480, 480)
    window.makeLayout(layout)
    window.closeHandle(onClose)
    window.run()
示例#7
0
                      expand=True,
                      proportion=1,
                      key='book'), {
                          'expand': True,
                          'proportion': 1,
                          'border': 0
                      }
    ]
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu": menu_def,
    "body": body_def,
    "status": status_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"SimpleBook Demo", 320, 240)
    appWin.makeLayout(layout)
    appWin.closeHandle(onClose)
    initCtrls()
    appWin.run()
示例#8
0
                               key="text"), {
                                   'expand': True,
                                   'proportion': 1
                               }
            ]],
        ],
                    expand=True,
                    proportion=1), {
                        'expand': True,
                        'proportion': 1
                    }
    ],
]

layout = {
    "menu": menu_def,
    "tool": tool_def,
    "status": status_def,
    "body": body_def,
}

if __name__ == "__main__":
    appWin = ew.WxApp(u"ToolbarText Demo", 480, 320)
    appWin.makeLayout(layout)
    findCtrls()
    appWin.closeHandle(onClose)
    appWin.openHandle(onOpen)
    appWin.idleHandle(onIdle)
    appWin.timerHandle(onTimer, 100, start=True, key='timer')
    appWin.run()
示例#9
0
            'expand': True,
            'proportion': 1
        }
    ],
    [
        ew.Label("00:00:00", key='time'),
        ew.Slider(expand=True,
                  proportion=1,
                  handler=onProgress,
                  key='progress'),
        ew.Label("Volume: "),
        ew.Slider(expand=True, key='volume'),
    ],
]

layout = {
    "menu": menu_def,
    "tool": tool_def,
    "status": status_def,
    "body": body_def,
}

if __name__ == "__main__":
    window = ew.WxApp(u"ezwxApp", 900, 620)
    window.makeLayout(layout)
    findCtrls()
    window.closeHandle(onClose)
    window.idleHandle(onIdle)
    window.timerHandle(onTimer, 100, start=True, key='timer')
    window.run()
示例#10
0
    [ ew.Label("Choice: ",expand=True),
      ew.Choice(['apple','lemon'],expand=True,size=(64,-1),proportion=1,key='choice'), ],
    [ ew.Label("Combo: ",expand=True),
      ew.Combo(['apple','lemon'],expand=True,size=(64,-1),proportion=1,key='combo'),], 
    [ ew.Label("List: ",expand=True),
      ew.List(['apple','lemon'],expand=True,size=(64,-1),proportion=1,key='list'),],       
    [ ew.Label("Date: ",expand=True),
      ew.Date(expand=True,size=(64,-1),proportion=1,key='date'),],       
    [ ew.Label("Time: ",expand=True),
      ew.Time(expand=True,size=(64,-1),proportion=1,key='time'),],       
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu"   : menu_def,
    "body"   : body_def, 
    "status"   : status_def, 
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Control Demo", 400, 480)
    appWin.makeLayout(layout)
    appWin.run()
示例#11
0
}

body_def = [
    [ ew.Calendar(handler=onCalendar,expand=True,proportion=1,key='cal'), ],
    [ ew.Button('GetDate',handler=onGetDate,expand=True,proportion=1), ],
    [ ew.Text("",multiline=True,expand=True,proportion=1,key='text'), 
      { 'expand' : True, 'proportion' : 1 }
    ],
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu"   : menu_def,
    "body"   : body_def, 
    "status"   : status_def, 
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Menu Demo", 320, 480)
    appWin.makeLayout(layout)
    initCtrls()
    appWin.closeHandle(onClose)
    appWin.run()
示例#12
0
body_def = [
    [
        ew.Label("Hello ezWxPython", expand=True, proportion=1, key='label'), {
            'expand': True,
            'proportion': 1
        }
    ],
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu": menu_def,
    "body": body_def,
    "status": status_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Thread Demo", 320, 240)
    appWin.makeLayout(layout)
    initCtrls()
    appWin.closeHandle(onClose)
    ew.threadHandle(threadWorker, start=True, key='thread', args=("Worker", ))
    appWin.run()
示例#13
0
      ew.Label("Font: "),
      ew.FontPicker(handler=onFont,key='font'), 
      ],
    [ None,
      ew.Button("Start",handler=onStart),
      ew.Button("Stop",handler=onStop),
      ew.Button("L > R",handler=onRight),
      ew.Button("L < R",handler=onLeft),
     ],       
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu"   : menu_def,
    "body"   : body_def, 
    "status"   : status_def, 
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Ticker Demo", 480, 240)
    appWin.makeLayout(layout)
    appWin.closeHandle(onClose)
    appWin.run()
示例#14
0
                       proportion=1)
    ],
    [
        ew.Text(expand=True,
                proportion=1,
                multiline=True,
                readonly=True,
                key="text"), {
                    'expand': True,
                    'proportion': 1
                }
    ],
    [None, ew.Button("Make", handler=onMake, expand=True)],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp("Icon Maker", 600, 480)
    appWin.makeLayout(layout)
    appWin.closeHandle(onClose)
    appWin.run()
示例#15
0
        ew.Label("Default Dir:"),
        ew.Text("D:\\", expand=True, proportion=1, key='dir'),
        ew.Button("Open", handler=onButton),
    ],
    [
        ew.Text('', multiline=True, expand=True, proportion=1, key='text'), {
            'expand': True,
            'proportion': 1
        }
    ],
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu": menu_def,
    "body": body_def,
    "status": status_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Directory Dialog Demo", 320, 240)
    appWin.makeLayout(layout)
    appWin.run()
示例#16
0
body_def = [
    [
        ew.Label("Hello ezWxPython", expand=True, proportion=1, key='label'), {
            'expand': True,
            'proportion': 1
        }
    ],
]

status_def = [
    ["Ready", -1],
]

layout = {
    "menu": menu_def,
    "body": body_def,
    "status": status_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    appWin = ew.WxApp(u"Menu Demo", 320, 240)
    appWin.makeLayout(layout)
    initCtrls()
    appWin.closeHandle(onClose)
    appWin.contextMenu(menu_def, 'label')
    appWin.run()
示例#17
0
                 ('Age', 64, 1)],  #label, width, align
                ["Willy", "M", "32"],
                ["Jane", "F", "28"],
            ],
            expand=True,
            proportion=1,
            multicol=True),
        {
            'expand': True,
            'proportion': 1
        }
    ],
]

layout = {
    "menu": menu_def,
    "status": status_def,
    "body": body_def,
}

######################################################################
# Main
######################################################################

if __name__ == "__main__":
    window = ezwx.WxApp(u"wxPython Template", 300, 200)
    window.makeLayout(layout)
    window.closeHandle(onClose)
    findControls()
    window.run()