You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
708 B
22 lines
708 B
12 years ago
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
from PySide import QtGui, QtCore
|
||
|
|
||
|
class HelpWgt(QtGui.QWidget):
|
||
|
def __init__(self, parent):
|
||
|
QtGui.QWidget.__init__(self)
|
||
|
|
||
|
helpLabel = QtGui.QLabel('about calculate Inc.')
|
||
|
helpQuit = QtGui.QPushButton("Quit")
|
||
|
|
||
|
layout = QtGui.QVBoxLayout()
|
||
|
layout.addWidget(helpLabel)
|
||
|
layout.addWidget(helpQuit)
|
||
|
self.setLayout(layout)
|
||
|
self.connect(helpQuit, QtCore.SIGNAL("clicked()"),
|
||
|
self, QtCore.SLOT("close()"))
|
||
|
|
||
|
self.move(100+parent.frameGeometry().x(), \
|
||
|
100+parent.frameGeometry().y())
|
||
|
self.resize(200,200)
|
||
|
# self.show()
|