上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 87 下一页

2015年4月17日

摘要: AQtGui.QCheckBoxis a widget that has two states: on and off. It is a box with a label. Check boxes are typically used to represent features in an appl... 阅读全文
posted @ 2015-04-17 19:00 帅胡 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: TheQtGui.QFileDialogis a dialog that allows users to select files or directories. The files can be selected for both opening and saving.#!/usr/bin/pyt... 阅读全文
posted @ 2015-04-17 18:33 帅胡 阅读(719) 评论(0) 推荐(0) 编辑
摘要: TheQtGui.QFontDialogis a dialog widget for selecting a font.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial In this example, we sele... 阅读全文
posted @ 2015-04-17 18:32 帅胡 阅读(684) 评论(0) 推荐(0) 编辑
摘要: heQtGui.QColorDialogprovides a dialog widget for selecting colour values.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial In this exa... 阅读全文
posted @ 2015-04-17 18:31 帅胡 阅读(744) 评论(0) 推荐(0) 编辑
摘要: TheQtGui.QInputDialogprovides a simple convenience dialog to get a single value from the user. The input value can be a string, a number or an item fr... 阅读全文
posted @ 2015-04-17 18:30 帅胡 阅读(530) 评论(0) 推荐(0) 编辑
摘要: Objects created from aQtCore.QObjectcan emit signals. In the following example we will see how we can emit custom signals.#!/usr/bin/python# -*- codin... 阅读全文
posted @ 2015-04-17 17:37 帅胡 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Sometimes it is convenient to know which widget is the sender of a signal. For this, PyQt4 has thesender()method.#!/usr/bin/python# -*- coding: utf-8 ... 阅读全文
posted @ 2015-04-17 17:35 帅胡 阅读(395) 评论(0) 推荐(0) 编辑
摘要: Events in PyQt4 are processed often by reimplementing event handlers.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial In this example... 阅读全文
posted @ 2015-04-17 17:34 帅胡 阅读(333) 评论(0) 推荐(0) 编辑
摘要: All GUI applications are event-driven. Events are generated mainly by the user of an application. But they can be generated by other means as well: e.... 阅读全文
posted @ 2015-04-17 17:33 帅胡 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Widgets can span multiple columns or rows in a grid. In the next example we illustrate this.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 t... 阅读全文
posted @ 2015-04-17 17:23 帅胡 阅读(505) 评论(0) 推荐(0) 编辑
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 87 下一页

导航