Python GUI - tkinter

#!/usr/bin/env python3css


from tkinter import *python


def show():oop

   global b1url

   b1['text'] = "Hello World!"spa


root = Tk()3d

root.title('Hello')orm

frame = Frame(root, width=200, height=150)blog

frame.pack()ci


frame.pack_propagate(False)it


b1 = Button(frame, text='Click', command=show)

b1.pack(expand=True)


root.mainloop()


相關文章
相關標籤/搜索