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.
calculate-utils-3-console-gui/api/gui/helpwidget.py

22 lines
708 B

# -*- 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()