1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# -*- coding: utf-8 -*-
from PyQt4 import QtGui, QtCore
class Help(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(self)
self.setWindowTitle('CowLog Help')
self.setWindowIcon(QtGui.QIcon('icons/help.png'))
ok = QtGui.QPushButton("Close", self)
self.connect(ok, QtCore.SIGNAL('clicked()'), QtCore.SLOT('hide()'))
about = QtGui.QTextBrowser(self)
about.setMinimumSize(400, 400)
about.setSource(QtCore.QUrl('manual.html'))
grid = QtGui.QGridLayout(self)
grid.setSpacing(7)
grid.addWidget(about, 2, 0, 5, 3)
grid.addWidget(ok, 7, 1)
|