converted main tabs to stacked widget

This commit is contained in:
Bachir Soussi Chiadmi
2017-05-27 09:06:48 +02:00
parent a37beb4761
commit 096ffa069e
3 changed files with 66 additions and 36 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ class Summary(QLabel):
class ContentTab(QWidget):
class ContentStack(QWidget):
def __init__(self, core):
super(ContentTab, self).__init__()
super(ContentStack, self).__init__()
# self.grid = QGridLayout()
hbox = QHBoxLayout()
+6 -6
View File
@@ -37,9 +37,9 @@ class CodeEditor(QPlainTextEdit):
# https://pypi.python.org/pypi/QScintilla/2.9.2
class ViewTab(QWidget):
class ViewStack(QWidget):
def __init__(self, core):
super(ViewTab, self).__init__()
super(ViewStack, self).__init__()
# self.grid = QGridLayout()
hbox = QHBoxLayout()
@@ -65,7 +65,7 @@ class ViewTab(QWidget):
hbox.addWidget(hsplitter)
def onChanged(self, text):
print("ViewTba Layout Changed")
self.lbl.setText(text)
self.lbl.adjustSize()
# def onChanged(self, text):
# print("ViewTba Layout Changed")
# self.lbl.setText(text)
# self.lbl.adjustSize()