Skip to content

Commit

Permalink
preparing for v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathijs van Gorcum committed Mar 27, 2023
1 parent c954e5a commit be624c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions drop_analysis/About.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'About.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
Expand All @@ -24,7 +24,7 @@ def setupUi(self, About):
self.verticalLayout.addWidget(self.label_3)
self.versionLabel = QtWidgets.QLabel(About)
self.versionLabel.setText("")
self.versionLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.versionLabel.setAlignment(QtCore.Qt.AlignCenter)
self.versionLabel.setObjectName("versionLabel")
self.verticalLayout.addWidget(self.versionLabel)
self.label_2 = QtWidgets.QLabel(About)
Expand Down
2 changes: 1 addition & 1 deletion drop_analysis/About.ui
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
Expand Down
2 changes: 2 additions & 0 deletions drop_analysis/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from drop_analysis.edge_analysis import analysis
from drop_analysis.Help import Ui_Help
from drop_analysis.About import Ui_About
from drop_analysis import version

pg.setConfigOptions(imageAxisOrder='row-major')

Expand Down Expand Up @@ -122,6 +123,7 @@ def __init__(self, *args, **kwargs):
self.aboutwidget=QtWidgets.QDialog()
self.aboutUI=Ui_About()
self.aboutUI.setupUi(self.aboutwidget)
self.aboutUI.versionLabel.setText(f"Version: {version.__version__}")
self.actionHelp.triggered.connect(self.helpwidget.show)
self.actionAbout.triggered.connect(self.aboutwidget.show)

Expand Down
10 changes: 0 additions & 10 deletions help.py

This file was deleted.

0 comments on commit be624c6

Please sign in to comment.