Skip to content

Commit

Permalink
Add version to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
HKaras committed Oct 2, 2024
1 parent 2c87148 commit 82207e8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
37 changes: 32 additions & 5 deletions autodeer/gui/gui2.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1731,11 +1731,38 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>autoDEER © 2023 Hugo Karas, Stefan Stoll, Gunnar Jeschke</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_16">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>autoDEER © 2024 Hugo Karas, Stefan Stoll, Gunnar Jeschke</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_12">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="Version_label">
<property name="text">
<string>Version:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
Expand Down
1 change: 1 addition & 0 deletions autodeer/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def __init__(self):
self.set_spectrometer_connected_light(0)

self.setWindowTitle("autoDEER")
self.Version_label.setText(f"Version: {ad.__version__}")


self.qDEER_tab.layout().addWidget(DEERplot())
Expand Down

0 comments on commit 82207e8

Please sign in to comment.