-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from PyQt5 import QtWidgets,QtCore | ||
from gui.toplayout import TopLayout | ||
|
||
class Widget(QtWidgets.QDialog): | ||
def __init__(self): | ||
super().__init__() | ||
|
||
|
||
mainLayout = QtWidgets.QGridLayout() | ||
|
||
# bottom layout | ||
self.bottomLayout = QtWidgets.QGroupBox() | ||
self.createBottomLayout() | ||
|
||
# top layout | ||
self.topLayout = TopLayout(self.txt) | ||
self.topLayout.create() | ||
|
||
|
||
mainLayout.addWidget(self.topLayout, 0, 0) | ||
mainLayout.addWidget(self.topLayout.canvas, 1,0) | ||
mainLayout.addWidget(self.bottomLayout, 2,0) | ||
|
||
self.setLayout(mainLayout) | ||
self.setWindowTitle('Rotation Viewer') | ||
|
||
def createBottomLayout(self): | ||
bLayout = QtWidgets.QVBoxLayout() | ||
|
||
self.txt = QtWidgets.QTextBrowser(self.bottomLayout) | ||
self.txt.setGeometry(QtCore.QRect()) | ||
self.txt.setObjectName("Params") | ||
bLayout.addWidget(self.txt, 0) | ||
self.bottomLayout.setLayout(bLayout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from gui.mainWindow import Widget | ||
from PyQt5 import QtWidgets | ||
|
||
if __name__ == "__main__": | ||
app = QtWidgets.QApplication([]) | ||
win = Widget() | ||
win.show() | ||
app.exec() |