コード例 #1
0
ファイル: progressbar.py プロジェクト: TrevorLowing/PyGames
def progressbar_main(args):
    from tkutil import wm_withdraw
    tk = Tkinter.Tk()
    wm_withdraw(tk)
    pb = TestProgressBar(tk)
    tk.mainloop()
    return 0
コード例 #2
0
def playeroptionsdialog_main(args):
    from tkutil import wm_withdraw

    opt = Struct(player="Test", update_player_stats=1)
    app = Struct(opt=opt)
    tk = Tkinter.Tk()
    wm_withdraw(tk)
    tk.update()
    d = PlayerOptionsDialog(tk, "Player options", app)
    print d.status, d.button, ":", d.player, d.update_stats
    return 0
コード例 #3
0
def tkwidget_main(args):
    from tkutil import wm_withdraw
    tk = Tkinter.Tk()
    wm_withdraw(tk)
    tk.update()
    if 1:
        d = MfxDialog(tk,
                      "title",
                      text="This is an info dialog",
                      bitmap="info",
                      default=0,
                      strings=("OK", ))
    if 1:
        d = MfxSimpleSlider(tk, "title", "label", 1.0, 0.2, 9.9, 0.1)
    if 1:
        d = MfxSimpleEntry(tk, "title", "label", "value")
    return 0