Added toolbars and buttons.

This commit is contained in:
Veronica K. B. Olsen
2018-09-29 18:14:44 +02:00
parent 4a83e210a3
commit 009555b963
3 changed files with 161 additions and 21 deletions
+1 -7
View File
@@ -28,7 +28,6 @@ class GuiDocTabs(QTabWidget):
logger.debug("Initialising DocTabs ...")
self.mainConf = nw.CONFIG
self.docList = []
self.tabList = []
self.resize(900,500)
@@ -42,13 +41,8 @@ class GuiDocTabs(QTabWidget):
tabName = "New Document"
else:
tabName = docFile
thisTab = QWidget()
tabBox = QVBoxLayout()
thisDoc = GuiDocEditor()
tabBox.addWidget(thisDoc)
thisTab.setLayout(tabBox)
thisTab = GuiDocEditor()
self.tabList.append(thisTab)
self.docList.append(thisDoc)
self.addTab(self.tabList[-1],tabName)
return True