# -*- coding: utf-8 -*- from PySide import QtGui class ToolsWidget (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)