摘要: wx.BookCtrlBase A book control is a convenient way of displaying multiple pages of information, displayed one page at a time. wxWidgets has five varia 阅读全文
posted @ 2016-11-26 12:57 wjbooks 阅读(376) 评论(0) 推荐(0) 编辑
摘要: wx.Notebook This class represents a notebook control, which manages multiple windows with associated tabs. To use the class, create a wx.Notebook obje 阅读全文
posted @ 2016-11-26 12:56 wjbooks 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: wx.Button A button is a control that contains a text string, and is one of the most common elements of a GUI. It may be placed on a dialog box or on a 阅读全文
posted @ 2016-11-26 12:54 wjbooks 阅读(628) 评论(0) 推荐(0) 编辑
摘要: wx.Window is the base class for all windows and represents any visible object on screen. All controls, top level windows and so on are windows. Sizers 阅读全文
posted @ 2016-11-26 12:52 wjbooks 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: Menus and toolbars A common part in a GUI application is a menubar. A menubar consists of objects called menus. Top-level menus have their labels on t 阅读全文
posted @ 2016-11-26 11:41 wjbooks 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 定位程序性能瓶颈 对代码优化的前提是需要了解性能瓶颈在什么地方,程序运行的主要时间是消耗在哪里,对于比较复杂的代码可以借助一些工具来定位,python 内置了丰富的性能分析工具,如 profile,cProfile 与 hotshot 等。其中 Profiler 是 python 自带的一组程序,能 阅读全文
posted @ 2016-11-23 22:34 wjbooks 阅读(7228) 评论(2) 推荐(1) 编辑
摘要: 1、优化循环 循环之外能做的事不要放在循环内,比如下面的优化可以快一倍 2、使用join合并迭代器中的字符串 join对于累加的方式,有大约5倍的提升 3、使用if is 使用if is True比if == True将近快一倍 4、使用级联比较x < y < z x < y < z效率略高,而且可 阅读全文
posted @ 2016-11-23 22:32 wjbooks 阅读(2118) 评论(0) 推荐(0) 编辑
摘要: 对于很多初学HTML的人来说,表格<table>是最常用的标签了,但对于表格边框的控制,很多初学者却不甚其解。 一般我们用表格的时候总会给它个border属性,比如:<table border="1">,其效果如下: 可以发现表格的边框好像很宽,当然这里的“很宽”绝对不是表格border的宽,大家看 阅读全文
posted @ 2016-11-23 00:16 wjbooks 阅读(14577) 评论(0) 推荐(0) 编辑
摘要: 做网页的时候,经常会碰到表格宽度对不齐的问题。详细地看了html中表格标签table的高度和宽度设置的细节,现总结如下: 1、table中的width和height设置及其作用:table中设置的height其实是设置个最小值,也就是当表格中的内容或者行高总值超过这个设置值时,会自动延长表格的hei 阅读全文
posted @ 2016-11-23 00:14 wjbooks 阅读(178461) 评论(0) 推荐(4) 编辑
摘要: css样式大全(整理版) 字体属性:(font) 大小 {font-size: x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD 样式 {font-style: oblique;}(偏斜体) italic;(斜体) normal;(正常) 行 阅读全文
posted @ 2016-11-23 00:07 wjbooks 阅读(43846) 评论(2) 推荐(6) 编辑