摘要:
用到了: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 阅读全文
摘要:
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. & 阅读全文