摘要:
用到了:QtCore.QRegExp类--------------正则表达式QtGui.QRegExpValidator类------做验证setValidator方法# !usr/bin/python # _*_ coding: utf-8 _*_from PyQt4 import QtGui, QtCoreclass MyQDialog(QtGui.QDialog): """ Class documentation goes here. """ def __init__(self, parent = None): "&q 阅读全文
posted @ 2014-03-13 19:37
洛卜哒
阅读(1826)
评论(1)
推荐(1)
摘要:
QMainWindow主窗体当窗体大小小于屏幕时打开在左上角显示。利用QDesktopWidget类可以实现主窗口居中显示。The QDesktopWidget class provides access to screen information on multi-head systems.# !usr/bin/python # _*_ coding: utf-8 _*_from PyQt4 import QtGuiclass QMainWindow(QtGui.QMainWindow): """ Class documentation goes here. & 阅读全文
posted @ 2014-03-13 19:21
洛卜哒
阅读(2933)
评论(0)
推荐(0)