|
10 | 10 | from PyQt5 import QtCore, QtGui, QtWidgets
|
11 | 11 | from PyQt5.QtCore import pyqtSignal
|
12 | 12 | from PyQt5.QtGui import QIcon
|
13 |
| -from PyQt5.QtWidgets import QAction, QDialog, QInputDialog, QLabel, QMessageBox, QMenu, QDockWidget, QFileDialog |
| 13 | +from PyQt5.QtWidgets import QAction, QDialog, QLabel, QMessageBox, QMenu, QDockWidget, QFileDialog |
14 | 14 |
|
15 | 15 | from mantidimaging.gui.utility.qt_helpers import populate_menu
|
16 | 16 | from mantidimaging.gui.widgets.stack_selector_dialog.stack_selector_dialog import StackSelectorDialog
|
@@ -60,8 +60,6 @@ class MainWindowView(BaseMainWindowView):
|
60 | 60 | load_dialogue: Optional[MWLoadDialog] = None
|
61 | 61 | save_dialogue: Optional[MWSaveDialog] = None
|
62 | 62 |
|
63 |
| - actionDebug_Me: QAction |
64 |
| - |
65 | 63 | def __init__(self):
|
66 | 64 | super(MainWindowView, self).__init__(None, "gui/ui/main_window.ui")
|
67 | 65 |
|
@@ -121,8 +119,6 @@ def setup_shortcuts(self):
|
121 | 119 |
|
122 | 120 | self.active_stacks_changed.connect(self.update_shortcuts)
|
123 | 121 |
|
124 |
| - self.actionDebug_Me.triggered.connect(self.attach_debugger) |
125 |
| - |
126 | 122 | def populate_image_menu(self):
|
127 | 123 | self.menuImage.clear()
|
128 | 124 | current_stack = self.current_showing_stack()
|
@@ -341,12 +337,6 @@ def uncaught_exception(self, user_error_msg, log_error_msg):
|
341 | 337 | QtWidgets.QMessageBox.critical(self, self.UNCAUGHT_EXCEPTION, f"{user_error_msg}")
|
342 | 338 | getLogger(__name__).error(log_error_msg)
|
343 | 339 |
|
344 |
| - def attach_debugger(self): |
345 |
| - port, accepted = QInputDialog.getInt(self, "Debug port", "Get PyCharm debug listen port", value=25252) |
346 |
| - if accepted: |
347 |
| - import pydevd_pycharm |
348 |
| - pydevd_pycharm.settrace('ndlt1104.isis.cclrc.ac.uk', port=port, stdoutToServer=True, stderrToServer=True) |
349 |
| - |
350 | 340 | def show_stack_select_dialog(self):
|
351 | 341 | dialog = MultipleStackSelect(self)
|
352 | 342 | if dialog.exec() == QDialog.Accepted:
|
|
0 commit comments