eric6/Tasks/TaskViewer.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r aff39db4dacc -r 7c017076c12e eric6/Tasks/TaskViewer.py
--- a/eric6/Tasks/TaskViewer.py	Mon Sep 23 19:10:42 2019 +0200
+++ b/eric6/Tasks/TaskViewer.py	Mon Sep 23 19:22:12 2019 +0200
@@ -17,8 +17,10 @@
 import threading
 
 from PyQt5.QtCore import pyqtSignal, Qt, QThread
-from PyQt5.QtWidgets import QHeaderView, QLineEdit, QTreeWidget, QDialog, \
-    QInputDialog, QApplication, QMenu, QAbstractItemView, QTreeWidgetItem
+from PyQt5.QtWidgets import (
+    QHeaderView, QLineEdit, QTreeWidget, QDialog, QInputDialog, QApplication,
+    QMenu, QAbstractItemView, QTreeWidgetItem
+)
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
@@ -246,9 +248,11 @@
         @param itm reference to the activated item (QTreeWidgetItem)
         @param col column the item was activated in (integer)
         """
-        if not self.__activating and \
-                itm is not self.__extractedItem and \
-                itm is not self.__manualItem:
+        if (
+            not self.__activating and
+            itm is not self.__extractedItem and
+            itm is not self.__manualItem
+        ):
             self.__activating = True
             fn = itm.getFilename()
             if fn:
@@ -269,9 +273,11 @@
         """
         itm = self.itemAt(coord)
         coord = self.mapToGlobal(coord)
-        if itm is None or \
-                itm is self.__extractedItem or \
-                itm is self.__manualItem:
+        if (
+            itm is None or
+            itm is self.__extractedItem or
+            itm is self.__manualItem
+        ):
             self.backProjectTasksMenuItem.setEnabled(self.projectOpen)
             if self.copyTask:
                 self.backPasteItem.setEnabled(True)
@@ -413,8 +419,10 @@
             project tasks (boolean)
         """
         for task in reversed(self.tasks[:]):
-            if (fileOnly and task.isProjectFileTask()) or \
-               (not fileOnly and task.isProjectTask()):
+            if (
+                (fileOnly and task.isProjectFileTask()) or
+                (not fileOnly and task.isProjectTask())
+            ):
                 if self.copyTask == task:
                     self.copyTask = None
                 parent = task.parent()
@@ -465,8 +473,9 @@
         if ro:
             dlg.setReadOnly()
         if dlg.exec_() == QDialog.Accepted and not ro:
-            summary, priority, completed, isProjectTask, description = \
+            summary, priority, completed, isProjectTask, description = (
                 dlg.getData()
+            )
             task.setSummary(summary)
             task.setPriority(priority)
             task.setCompleted(completed)
@@ -481,8 +490,9 @@
         from .TaskPropertiesDialog import TaskPropertiesDialog
         dlg = TaskPropertiesDialog(None, self, self.projectOpen)
         if dlg.exec_() == QDialog.Accepted:
-            summary, priority, completed, isProjectTask, description = \
+            summary, priority, completed, isProjectTask, description = (
                 dlg.getData()
+            )
             self.addTask(summary, priority, completed=completed,
                          isProjectTask=isProjectTask, description=description)
     
@@ -497,8 +507,9 @@
         dlg = TaskPropertiesDialog(None, self, self.projectOpen)
         dlg.setSubTaskMode(projectTask)
         if dlg.exec_() == QDialog.Accepted:
-            summary, priority, completed, isProjectTask, description = \
+            summary, priority, completed, isProjectTask, description = (
                 dlg.getData()
+            )
             self.addTask(summary, priority, completed=completed,
                          isProjectTask=isProjectTask, description=description,
                          parentTask=parentTask)

eric ide

mercurial