--- a/TimeTracker/TimeTrackerWidget.py Sat Dec 23 15:48:55 2023 +0100 +++ b/TimeTracker/TimeTrackerWidget.py Sat Dec 23 19:35:14 2023 +0100 @@ -130,7 +130,7 @@ self.__tracker.startTrackerEntry() @pyqtSlot(QPoint) - def on_entriesList_customContextMenuRequested(self, pos): + def on_entriesList_customContextMenuRequested(self, pos): # noqa: U100 """ Private slot to create the context menu and show it. @@ -190,14 +190,14 @@ """ Private slot to edit the selected tracker entry. """ + from .TimeTrackerEntryDialog import TimeTrackerEntryDialog + itm = self.entriesList.selectedItems()[0] eid = itm.data(0, Qt.ItemDataRole.UserRole) if eid > -1: # the current entry is edited via the elements of this widget entry = self.__tracker.getEntry(eid) if entry is not None: - from .TimeTrackerEntryDialog import TimeTrackerEntryDialog - tasks = [ self.taskCombo.itemText(index) for index in range(self.taskCombo.count()) @@ -235,7 +235,7 @@ res = EricMessageBox.yesNo( self, self.tr("Delete Selected Entries"), - self.tr("""Do you really want to delete the selected""" """ entries?"""), + self.tr("""Do you really want to delete the selected entries?"""), ) if res: for item in self.entriesList.selectedItems(): @@ -304,7 +304,7 @@ self, self.tr("Export Time Tracker Entries"), self.tr( - "<p>The file <b>{0}</b> already exists." " Overwrite it?</p>" + "<p>The file <b>{0}</b> already exists. Overwrite it?</p>" ).format(fname), icon=EricMessageBox.Warning, )