摘要: 1 from tkinter import * 2 def printSelection(): 3 print(cities[int(var.get())]) 4 lab.config(text="你选择了"+cities[int(var.get())]) 5 6 root = Tk() 7 roo 阅读全文
posted @ 2019-12-03 21:23 做梦者造梦 阅读(261) 评论(0) 推荐(0) 编辑
摘要: from tkinter import * def printSelection(): num = var.get() if num == 1: lab.config(text="你是男生") else: lab.config(text="你是女生") root =Tk() root.title(" 阅读全文
posted @ 2019-12-03 18:25 做梦者造梦 阅读(617) 评论(0) 推荐(0) 编辑