blob: 9b5f7052b4b1f80e0f5a36a02ab4231c53a13dc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from PyQt4 import QtCore, QtGui
from editorui import *
class KPMainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
self.editor = KPEditorWidget()
self.setCentralWidget(self.editor)
self.setupMenuBar()
def setupMenuBar(self):
mb = self.menuBar()
m = mb.addMenu('&File')
# ...
|