diff --git a/bin/cl-update-checker b/bin/cl-update-checker index e2c2494..814915e 100644 --- a/bin/cl-update-checker +++ b/bin/cl-update-checker @@ -72,7 +72,7 @@ class SysTray(QtWidgets.QSystemTrayIcon): ICON_NO_UPDATE = "/usr/share/pixmaps/calculate-console-update-no.svg" def __init__(self, parent): - super(SysTray, self).__init__() + super().__init__() self.parent = parent self.timeout = 0 @@ -160,7 +160,7 @@ class CheckThread(QtWidgets.QMainWindow, UpdateInfo): interval = 5 * MINUTE def __init__(self, bus): - super(CheckThread, self).__init__() + super().__init__() UpdateInfo.__init__(self) self.bus = bus diff --git a/pym/consolegui/application/MainFrameResult.py b/pym/consolegui/application/MainFrameResult.py index 9797bd6..4f79b8b 100644 --- a/pym/consolegui/application/MainFrameResult.py +++ b/pym/consolegui/application/MainFrameResult.py @@ -142,7 +142,7 @@ class MainFrameRes(qt.QWidget): self.updateGeometry() def show_bottom(self): - debug(20, "SHOW BOTTOM PAGE") + # debug(20, "SHOW BOTTOM PAGE") max_val = self._parent.main_frame.verticalScrollBar().maximum() current_val = \ self._parent.main_frame.verticalScrollBar().sliderPosition() diff --git a/pym/consolegui/application/more.py b/pym/consolegui/application/more.py index 3b65644..32dbd99 100644 --- a/pym/consolegui/application/more.py +++ b/pym/consolegui/application/more.py @@ -1665,7 +1665,7 @@ class FlowLayout(qt.QLayout): return height def setGeometry(self, rect): - super(FlowLayout, self).setGeometry(rect) + super().setGeometry(rect) self.doLayout(rect, False) def sizeHint(self): @@ -2452,7 +2452,7 @@ class ClientSignal(qt.QThread): except urllib2.URLError: reply = 2 except Exception as e: - show_msg (e.message, 'no connection to server!') + show_msg (e, 'no connection to server!') if reply == 0: #if not self.ClientObj.has_connect: self.connect_count.emit(self.ClientObj.host_name, diff --git a/pym/consolegui/application/utils.py b/pym/consolegui/application/utils.py index 3309fb1..9b6bd34 100644 --- a/pym/consolegui/application/utils.py +++ b/pym/consolegui/application/utils.py @@ -129,7 +129,7 @@ def listToArrayArray(client, _list, _type='string'): return array_array -class switch(object): +class switch(): def __init__(self, value): self.value = value self.fall = False