eric6/UI/NotificationWidget.py

changeset 7264
bedbe458d792
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/UI/NotificationWidget.py	Tue Sep 24 18:46:24 2019 +0200
+++ b/eric6/UI/NotificationWidget.py	Tue Sep 24 19:08:10 2019 +0200
@@ -40,10 +40,12 @@
         
         self.__settingPosition = setPosition
         
-        flags = Qt.Tool | \
-            Qt.FramelessWindowHint | \
-            Qt.WindowStaysOnTopHint | \
+        flags = (
+            Qt.Tool |
+            Qt.FramelessWindowHint |
+            Qt.WindowStaysOnTopHint |
             Qt.X11BypassWindowManagerHint
+        )
         if Globals.isWindowsPlatform():
             flags |= Qt.ToolTip
         self.setWindowFlags(flags)
@@ -121,8 +123,9 @@
             return
         
         if evt.button() == Qt.LeftButton:
-            self.__dragPosition = \
+            self.__dragPosition = (
                 evt.globalPos() - self.frameGeometry().topLeft()
+            )
             self.setCursor(Qt.ClosedHandCursor)
             evt.accept()
     

eric ide

mercurial