第十九章、 图形界面编程

import Tkinter
top = Tkinter.Tk() 

hello = Tkinter.Label(top, text='Hello World!')
hello.pack()
quit = Tkinter.Button(top, text='QUIT',command=top.quit)
quit.pack(fill=Tkinter.X, expand=1) 

Tkinter.mainloop() 

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-02-08
  • 2021-07-04
  • 2022-01-13
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-01-22
  • 2021-07-28
  • 2022-01-05
相关资源
相似解决方案