2015年4月18日

摘要: 1.自己调用命令行 pyuic4-ocodeFile.py-xyourUIfile.ui2.写一个批处理,每次双击就行了,跟你的源文件放在同一文件夹下 importosforroot,dirs,filesinos.walk('.'):forfileinfiles:iffile.endswith(... 阅读全文
posted @ 2015-04-18 15:30 帅胡 阅读(1094) 评论(0) 推荐(0) 编辑
摘要: he Tetris game is one of the most popular computer games ever created. The original game was designed and programmed by a Russian programmerAlexey Paj... 阅读全文
posted @ 2015-04-18 13:14 帅胡 阅读(373) 评论(0) 推荐(0) 编辑
摘要: This is a widget that we can see in Nero, K3B, or other CD/DVD burning software.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial In t... 阅读全文
posted @ 2015-04-18 13:09 帅胡 阅读(312) 评论(0) 推荐(0) 编辑
摘要: TheQtGui.QBrushis an elementary graphics object. It is used to paint the background of graphics shapes, such as rectangles, ellipses, or polygons. A b... 阅读全文
posted @ 2015-04-18 13:05 帅胡 阅读(833) 评论(0) 推荐(0) 编辑
摘要: TheQtGui.QPenis an elementary graphics object. It is used to draw lines, curves and outlines of rectangles, ellipses, polygons, or other shapes.#!/usr... 阅读全文
posted @ 2015-04-18 10:50 帅胡 阅读(500) 评论(0) 推荐(0) 编辑
摘要: A colour is an object representing a combination of Red, Green, and Blue (RGB) intensity values. Valid RGB values are in the range from 0 to 255. We c... 阅读全文
posted @ 2015-04-18 10:31 帅胡 阅读(277) 评论(0) 推荐(0) 编辑
摘要: A point is the most simple graphics object that can be drawn. It is a small spot on the window.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt... 阅读全文
posted @ 2015-04-18 10:29 帅胡 阅读(441) 评论(0) 推荐(0) 编辑
摘要: We begin with drawing some Unicode text on the client area of a window.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorial In this examp... 阅读全文
posted @ 2015-04-18 10:28 帅胡 阅读(425) 评论(0) 推荐(0) 编辑
摘要: In the following example, we will demonstrate how to drag & drop a button widget.#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode PyQt4 tutorialIn t... 阅读全文
posted @ 2015-04-18 10:26 帅胡 阅读(762) 评论(0) 推荐(0) 编辑
摘要: In computer graphical user interfaces, drag-and-drop is the action of (or support for the action of) clicking on a virtual object and dragging it to a... 阅读全文
posted @ 2015-04-18 10:23 帅胡 阅读(489) 评论(0) 推荐(0) 编辑

导航