zoukankan      html  css  js  c++  java
  • tk

    from tkinter import *

    class Application(Frame):
        def say_hi(self):
            print("hi there, everyone!")

        def createWidgets(self):
            self.QUIT = Label(self)
            self.QUIT["text"] = "请点击按钮记录工时..."
            self.QUIT["fg"] = "red"
            self.QUIT["bg"] = "white"
    #        self.QUIT["command"] = self.quit

            self.QUIT.pack({"side": "top"})

            self.hi_there = Button(self)
            self.hi_there["text"] = "记录工时",
            self.hi_there["command"] = self.quit

            self.hi_there.pack({"side": "bottom"})

        def __init__(self, master=None):
            Frame.__init__(self, master)
            self.pack()
            self.createWidgets()
    #----------------程序入口-------------------------------
    root = Tk()
    root.title('工时记录统计客户端')
    root.geometry('345x272+100+100')
    app = Application(master=root)
    app.mainloop()
    root.destroy()
    男人就是责任!
  • 相关阅读:
    hdu1403(后缀数组模板)
    输入外挂模板
    hdu2896(ac自动机)
    hdu2222(ac自动机模板)
    codevs1169, 51nod1084(多线程dp)
    codevs3027(dp)
    codevs1068(dp)
    大数乘法模板
    Java锁--框架
    Java并发包--ConcurrentLinkedQueue
  • 原文地址:https://www.cnblogs.com/snben/p/2685334.html
Copyright © 2011-2022 走看看