摘要: 9. 菜单 使用Menu类创建菜单栏和菜单,再使用add_command方法给菜单增加条目。 9-10) Menu()创建一个菜单栏menubar,并通过window.config(menu = menubar)将此窗口的菜单栏设为menubar 12-13) Menu()创建一个菜单operati 阅读全文
posted @ 2018-09-23 22:18 Gabriel_Ham 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 6.几何管理器 Tkinter中的几何管理器分为:网格管理器、包管理器与位置管理器(最好不要对同一容器中的小构件使用多种管理器) ①网格管理器:将各个空间分布在看不见的网格中 9) rowspan与columnspan将message放置在多行多列中 11、14) padx与pady填充单元格在水平 阅读全文
posted @ 2018-09-23 21:39 Gabriel_Ham 阅读(218) 评论(0) 推荐(0) 编辑
摘要: # 今天开始使用博客记录我的python学习部分笔记,从当前进度第9章开始,因教材用中文这里也用中文 2. 开始使用Tkinter 4)Tk() 创建一个窗口实例,window为该实例 5-6) Label与Button是Python Tkinter的小构件类,其第一个参数为父容器(window) 阅读全文
posted @ 2018-09-23 20:19 Gabriel_Ham 阅读(357) 评论(2) 推荐(0) 编辑
摘要: ) You can't pass an expression to a function that requires a reference: ) Passing by value is a norm that you might not want to change the origin valu 阅读全文
posted @ 2018-09-23 16:53 Gabriel_Ham 阅读(130) 评论(0) 推荐(0) 编辑
摘要: //第一次在博客上发自己的C++ primer plus学习笔记,从现在进度(第8章)开始,用英文也当是练练英语写作了 1. Inline Functions ) When calling a regular function, the program execution will be trans 阅读全文
posted @ 2018-09-23 12:19 Gabriel_Ham 阅读(137) 评论(0) 推荐(0) 编辑