Skip to content
Snippets Groups Projects
Commit ae32f52b authored by Lan Dam's avatar Lan Dam
Browse files

docstring

parent 00dd09f6
No related branches found
No related tags found
1 merge request!276version information - about page
Pipeline #3780 passed with stage
in 7 minutes and 30 seconds
...@@ -19,10 +19,14 @@ def add_separation_line(layout): ...@@ -19,10 +19,14 @@ def add_separation_line(layout):
class AboutDialog(QDialog): class AboutDialog(QDialog):
"""
Dialog to show information of the software.
About Dialog is always opened and will be raised up when the about menu
action is triggered.
"""
def __init__(self, parent: Union[QWidget, QApplication]): def __init__(self, parent: Union[QWidget, QApplication]):
""" """
Dialog to show information of the software
:param parent: the parent widget :param parent: the parent widget
""" """
super(AboutDialog, self).__init__(parent) super(AboutDialog, self).__init__(parent)
......
...@@ -224,7 +224,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): ...@@ -224,7 +224,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
@QtCore.Slot() @QtCore.Slot()
def open_about(self): def open_about(self):
""" """
Open About dialog. If it is currently open, raise it to the front. About dialog is always open. This function will raise it up when called
""" """
self.about_dialog.show() self.about_dialog.show()
self.about_dialog.raise_() self.about_dialog.raise_()
......
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