第21节--python的GUI编程

1. GUI: Graphical User Interface

2. tkinter: GUI library for Python

3. GUI Example

from tkinter import *

import tkinter.simpledialog as dl
import tkinter.messagebox as mb

root = Tk()
w = Label(root,text = "Label Title")
w.pack()

mb.showinfo("Welcome","Welcome Message")
guess = dl.askinteger("Number","Enter a number")

output = "This is output message"
mb.showinfo("output: ",output)

你可能感兴趣的:(彭亮之Python语言编程基础,python图形编程,pythonGUI,GUI编程,tkinter,图形用户界面)