from Tkinter import *
root = Tk()
def printt(self):
repair = Tk()
repairwindow = Frame(repair, bg='white', width=800, height=800)
repairwindow.pack(expand=True, fill='both', side='right')
repair.mainloop()
mainarea = Frame(root, bg='grey', width=1200, height=1000)
mainarea.pack(expand=True, fill='both', side='right')
label1 = Label( mainarea, width=40, height = 5 , text="New Quotation",
relief=GROOVE )
label1.place(relx=.5, rely=.5, anchor="center")
label1.bind("<Button-1>",printt)
label2 = Label( mainarea, width=15, height = 3 , text="Update",
relief=GROOVE
)
label2.place(relx=.45, rely=.6, anchor="center")
label2.bind("<Button-1>",printt)
label3 = Label( mainarea, width=15, height = 3 , text="Report",
relief=GROOVE )
label3.place(relx=.55, rely=.6, anchor="center")
label3.bind("<Button-1>",printt)
label4 = Label( mainarea, width=40, height = 5 , text="Data Base",
relief=GROOVE )
label4.place(relx=.5, rely=.7, anchor="center")
label4.bind("<Button-1>",printt)
root.attributes('-alpha', 0.98)
root.mainloop()
我需要添加一个点击效果的标签她,还想改变窗口的颜色,如果可能的话,它的大小!! 这段代码是用tkinter编写的,我对使用tkinter设计gui没有太多的想法。 是否适合deaktop应用。在
目前没有回答
相关问题 更多 >
编程相关推荐