Skip to content
Snippets Groups Projects
Commit 31a81bf8 authored by Petter Sagvold's avatar Petter Sagvold
Browse files

#6 Fikset pipeline klaging

parent 5d0c659c
No related branches found
No related tags found
1 merge request!1Oppsett av skjelettet til hovedvinduet
Pipeline #70407 failed
"""Hovedvinduet."""
import sys
from PySide2.QtWidgets import QTabWidget, QWidget, QMainWindow, QApplication, QHBoxLayout, QVBoxLayout, QPushButton, QTreeWidget, QLabel
from PySide2.QtWidgets import QTabWidget, QWidget, QMainWindow, \
QApplication, QHBoxLayout, QVBoxLayout, QPushButton, QTreeWidget, QLabel
class Window(QMainWindow):
"""MainWindow, skallet til hele applikasjonen."""
def __init__(self):
super().__init__()
......@@ -39,6 +42,8 @@ class Window(QMainWindow):
class MainWidget(QWidget):
"""Hovedwidget til applikasjonen, dette er det som blir tabs."""
def __init__(self):
super().__init__()
layout1 = QHBoxLayout()
......@@ -57,6 +62,8 @@ class MainWidget(QWidget):
class ViewArea(QWidget):
"""Widget som kan byttes ut med view, edit etc."""
def __init__(self):
super().__init__()
test = QLabel("Test")
......@@ -67,7 +74,7 @@ class ViewArea(QWidget):
app = QApplication([])
window = Window()
window.show()
WINDOW = Window() # PYLINT klagde på window, så det ble WINDOW
WINDOW.show()
sys.exit(app.exec_())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment