上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 52 下一页
摘要: 一、参数说明 语法作用 Scale(window, label="滑块") 滑块标题 Scale(window, label="滑块", from_=0) 滑块最小值为0 Scale(window, label="滑块", to=100) 滑块最大值为100 Scale(window, label= 阅读全文
posted @ 2019-11-04 10:32 样子2018 阅读(1572) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 MenuBar = tk.Menu(window) 创建一个菜单栏 fileBar = tk.Menu(MenuBar, tearoff=0) 创建一个菜单项,不分窗。 MenuBar.add_cascade(label="File", menu=fileBar) 在菜单栏添 阅读全文
posted @ 2019-11-04 09:47 样子2018 阅读(3729) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 t=tk.Text()t.insert(END,'插入的文本信息') INSERT:光标的插入点CURRENT:鼠标的当前位置所对应的字符位置END:这个Textbuffer的最后一个字符SEL_FIRST:选中文本域的第一个字符,如果没有选中区域则会引发异常SEL_LAST 阅读全文
posted @ 2019-11-03 15:28 样子2018 阅读(10144) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 Checkbutton(root,text='xxxx') 复选框显示的文本 Checkbutton(root,variable=id) 通过变量的值确定哪些复选框被选中 Checkbutton(root,variable=id,onvalue=1) 复选框选中(有效)时变量 阅读全文
posted @ 2019-11-03 00:12 样子2018 阅读(1227) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 Radiobutton(root,text='xxxx') 单选框文本显示内容 Radiobutton(root,variable=color) 单选框索引变量,通过变量的值确定哪个单选框被选中 Radiobutton(root,variable=color,value='r 阅读全文
posted @ 2019-11-02 16:59 样子2018 阅读(917) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 Entry(root,width=20) 组件的宽度(所占字符个数) Entry(root,fg='blue') 前景字体颜色 Entry(root,bg='blue') 背景颜色 Entry(root,show="*") 将Entry框中的文本替换为指定字符 Entry(r 阅读全文
posted @ 2019-11-02 16:26 样子2018 阅读(2882) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 Button(root,text='xxxx') 按钮图标显示内容 Button(root,text='xxxx',height=2) 组件的高度(所占行数) Button(root,text='xxxx',width=20) 组件的宽度(所占字符个数) Button(tex 阅读全文
posted @ 2019-11-02 15:57 样子2018 阅读(1595) 评论(0) 推荐(0)
摘要: 一、参数说明 语法作用 Label(window,text=‘xxxxx’) 需要在界面显示的Label标签内容 Label(window,text=‘xxxxx’,height=2) 组件的高度(所占行数) Label(root,text=‘xxxxx’,height=2,width=20) 组件 阅读全文
posted @ 2019-11-02 15:07 样子2018 阅读(2995) 评论(0) 推荐(0)
摘要: 一、常用参数 语法作用 window= tk.TK() 创建窗口 window['height'] = 300 设置高 window['width'] = 500 设置宽 window.title('魔方小站') 设置标题 window['bg'] = '#0099ff' 设置背景色 window. 阅读全文
posted @ 2019-11-02 13:49 样子2018 阅读(4344) 评论(0) 推荐(2)
摘要: 一、request封装 request(url, data, successCallBack = function (data) {}, completeCallBack = function (data) {}, method = "GET", dataType = 'json', respons 阅读全文
posted @ 2019-10-31 17:01 样子2018 阅读(917) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 52 下一页