#设置最小化与最大化按钮
self.setWindowFlags(QtCore.Qt.Window)
参考:
file:///D:/Program Files (x86)/Python27/Lib/site-packages/PyQt4/doc/html/qt.html#WindowType-enum
Qt.Widget
0x00000000 This is the default type for QWidget. Widgets of this type are child widgets if they have a parent, and independent windows if they have no parent. See also Qt.Window and Qt.SubWindow.
Qt.Window
0x00000001 Indicates that the widget is a window, usually with a window system frame and a title bar, irrespective of whether the widget has a parent or not. Note that it is not possible to unset this flag if the widget does not have a parent.