def _openTaskEditor(self, title, task=None): uniqlist = sorted(list(OrderedDict.fromkeys(self._completedValues+self._values)))+self._dates dialog = AutoCompleteInputDialog(uniqlist, self._parent_window) dialog.setWindowTitle(title) dialog.setLabelText('Task:') dialog.resize(500, 100) if task: dialog.setTextValue(task.text) dialog.setModal(True) if dialog.exec_(): return dialog.textValue(), True return None, False
def _openTaskEditor(self, title, task=None): uniqlist = sorted( list(OrderedDict.fromkeys(self._completedValues + self._values))) + self._dates dialog = AutoCompleteInputDialog(uniqlist, self._parent_window) dialog.setWindowTitle(title) dialog.setLabelText('Task:') dialog.resize(500, 100) if task: dialog.setTextValue(task.text) dialog.setModal(True) if dialog.exec_(): return dialog.textValue(), True return None, False
def _openTaskEditor(self, title, task=None): dialog = AutoCompleteInputDialog(self._values, self._parent_window) dialog.setWindowTitle(title) dialog.setLabelText('Task:') dialog.resize(500, 100) if task: dialog.setTextValue(task.text) dialog.setModal(True) if dialog.exec_(): return (dialog.textValue(), True) return (None, False)
def _openTaskEditor(self, title, task=None): uniqlist = sorted(list(OrderedDict.fromkeys(self._completedValues+self._values)))+self._dates dialog = AutoCompleteInputDialog(uniqlist, self._parent_window, self._settings.getSupportMultilineTasks()) dialog.setWindowTitle(title) dialog.setLabelText('Task:') #self._restoreMultilineDialogDimensions(dialog) if task: dialog.setTextValue(task.text) dialog.setModal(True) dlgReturn = dialog.exec_() #self._saveMultilineDialogDimensions(dialog) if dlgReturn: return dialog.textValue(), True return None, False