Commit fc6b1d41 authored by Samuel Jones's avatar Samuel Jones
Browse files

Use qtpy instead of pyqt for slot and signal

parent 89e298e9
......@@ -7,8 +7,7 @@
# This file is part of the mantid workbench.
#
from qtpy.QtWidgets import QWidget, QProgressBar
from qtpy.QtCore import Qt
from PyQt5.QtCore import pyqtSlot, pyqtSignal
from qtpy.QtCore import Qt, Slot, Signal
NORMAL_STYLE = """
QProgressBar::chunk {
......@@ -48,7 +47,7 @@ def from_critical_to_normal(critical: int, current_value: int, new_value: int) -
class MemoryView(QWidget):
set_value = pyqtSignal(int, float, float)
set_value = Signal(int, float, float)
"""
Initializes and updates the view of memory(progress) bar.
"""
......@@ -75,7 +74,7 @@ class MemoryView(QWidget):
def invoke_set_value(self, new_value: int, mem_used: float, mem_avail: float):
self.set_value.emit(new_value, mem_used, mem_avail)
@pyqtSlot(int, float, float)
@Slot(int, float, float)
def _set_value(self, new_value, mem_used, mem_avail):
"""
Receives memory usage information passed by memory presenter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment