上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: import tkinterwin = tkinter.Tk()win.title("sunck")win.geometry("400x400+200+0")'''列表框控件,可以包含一个或者多个文本框作用:在listbox控件的小窗口显示一个字符串'''#1、创建一个listbox, 添加几个元素 阅读全文
posted @ 2020-05-19 16:01 i勤能补拙 阅读(677) 评论(0) 推荐(0) 编辑
摘要: import tkinterwin = tkinter.Tk()win.title("sunck")win.geometry("400x400+200+20")def updata(): print(r.get())#一组单选框要绑定同一个变量r = tkinter.IntVar()radio1 = 阅读全文
posted @ 2020-05-19 15:59 i勤能补拙 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 打开python自带IDLE编辑器时出的问题 IDLE can't bind to a TCP/IP port, which is necessary tocommunicate with its Python execution server. This might bebecause no ne 阅读全文
posted @ 2020-02-23 09:00 i勤能补拙 阅读(988) 评论(0) 推荐(0) 编辑
摘要: import tkinterwin = tkinter.Tk()win.title("sunck")win.geometry("400x400+200+20")def updata(): message = "" if hobby1.get() == True: message += "money\ 阅读全文
posted @ 2020-02-20 14:43 i勤能补拙 阅读(725) 评论(0) 推荐(0) 编辑
摘要: import tkinter#创建主窗口win = tkinter.Tk()#设置标题win.title("sunck")#设置大小和位置#win.geometry("400x400+200+20")'''文本控件,用于显示多行文本'''#创建滚动条scroll = tkinter.Scrollba 阅读全文
posted @ 2020-02-20 10:31 i勤能补拙 阅读(4860) 评论(0) 推荐(0) 编辑
摘要: import tkinter#创建主窗口win = tkinter.Tk()#设置标题win.title("sunck")#设置大小和位置win.geometry("400x400+200+20")'''文本控件,用于显示多行文本'''#height显示的行数text = tkinter.Text( 阅读全文
posted @ 2020-02-20 10:16 i勤能补拙 阅读(1878) 评论(0) 推荐(0) 编辑
摘要: import tkinter#创建主窗口win = tkinter.Tk()#设置标题win.title("sunck")#设置大小和位置win.geometry("400x400+200+20")def showInfo(): print(entry.get())entry = tkinter.E 阅读全文
posted @ 2020-02-20 10:09 i勤能补拙 阅读(4947) 评论(0) 推荐(0) 编辑
摘要: import tkinter#创建主窗口win = tkinter.Tk()#设置标题win.title("sunck")#设置大小和位置win.geometry("400x400+200+20")'''输入控件用于显示简单的文本内容'''#绑定变量e = tkinter.Variable()#sh 阅读全文
posted @ 2020-02-20 09:41 i勤能补拙 阅读(714) 评论(0) 推荐(0) 编辑
摘要: import tkinterdef func(): print("sunck is a good man")win = tkinter.Tk()win.title("sunck")win.geometry("400x400+200+20")#创建按钮button1 = tkinter.Button( 阅读全文
posted @ 2020-02-19 20:42 i勤能补拙 阅读(865) 评论(0) 推荐(0) 编辑
摘要: import tkinterwin = tkinter.Tk()win.title("sunck")win.geometry("400x400+200+20")'''Label:标签控件可以显示文本'''#win 父窗体#text 显示的文本内容#bg 背景色#fg 字体颜色#wraplength 阅读全文
posted @ 2020-02-19 20:26 i勤能补拙 阅读(767) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页