Skip to content

Commit

Permalink
Merge branch 'autoplot-replace-QtTest-calls-in-msui_mainwindow' of gi…
Browse files Browse the repository at this point in the history
…thub.com:Open-MSS/MSS into autoplot-replace-QtTest-calls-in-msui_mainwindow
  • Loading branch information
ReimarBauer committed Oct 5, 2024
2 parents d9dc3bd + 82add5c commit babe555
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mslib/msui/linearview.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def openTool(self, index, parent=None, config_settings=None):
view="Linear View", config_settings=config_settings)
widget.treewidget_item_selected.connect(
lambda url, layer, style, level: self.tree_item_select(url, layer, style, level))
widget.update_op_flight_treewidget.connect(
lambda opfl, flight: parent.update_treewidget_op_fl(opfl, flight))
else:
raise IndexError("invalid control index")
# Create the actual dock widget containing <widget>.
Expand Down
3 changes: 3 additions & 0 deletions mslib/msui/msui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
from mslib.utils.qt import get_open_filenames, get_save_filename, show_popup
from mslib.utils.config import read_config_file, config_loader
from PyQt5 import QtGui, QtCore, QtWidgets
from mslib.utils import release_info

from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas

# Add config path to PYTHONPATH so plugins located there may be found
Expand Down Expand Up @@ -407,6 +409,7 @@ def __init__(self, parent=None):
super().__init__(parent)
self.setupUi(self)
self.lblVersion.setText(f"Version: {__version__}")
self.lblNewVersion.setText(f"{release_info.check_for_new_release()[0]}")
self.milestone_url = f'https://github.com/Open-MSS/MSS/issues?q=is%3Aclosed+milestone%3A{__version__[:-1]}'
self.lblChanges.setText(f'<a href="{self.milestone_url}">New Features and Changes</a>')
blub = QtGui.QPixmap(python_powered())
Expand Down
2 changes: 2 additions & 0 deletions mslib/msui/sideview.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ def openTool(self, index, parent=None, config_settings=None):
view="Side View", config_settings=config_settings)
widget.treewidget_item_selected.connect(
lambda url, layer, style, level: self.tree_item_select(url, layer, style, level))
widget.update_op_flight_treewidget.connect(
lambda opfl, flight: parent.update_treewidget_op_fl(opfl, flight))
else:
raise IndexError("invalid control index")
# Create the actual dock widget containing <widget>.
Expand Down

0 comments on commit babe555

Please sign in to comment.