摘要: 8.4 Function Overloading ) Function overloading, also called function polymorphism, lets you use multiple functions with the same name, but using diff 阅读全文
posted @ 2018-09-27 10:39 Gabriel_Ham 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 8.2.6 Objects, Inheritance, and References ) You might use ostream object cout and ofstream object fout(your declaration), and the object fout could s 阅读全文
posted @ 2018-09-25 22:16 Gabriel_Ham 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Exercise 9_1: Exercise 9_19: Exercise 9.25: 阅读全文
posted @ 2018-09-25 16:04 Gabriel_Ham 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 10. 弹出菜单 9-13) 用self.menu存储Menu类对象是因为后续方法中会需要访问此menu,故将其放在类的数据域中 self.menu.add_command(label, command)给一个菜单栏添加具体命令 18) self.canvas.bind(string, comman 阅读全文
posted @ 2018-09-24 16:40 Gabriel_Ham 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑