コード例 #1
0
ファイル: prompt.py プロジェクト: michaelbeaumont/qutebrowser
 def accept(self, value=None):
     text = value if value is not None else self._lineedit.text()
     text = downloads.transform_path(text)
     if text is None:
         message.error("Invalid filename")
         return False
     self.question.answer = text
     return True
コード例 #2
0
 def accept(self, value=None):
     text = value if value is not None else self._lineedit.text()
     text = downloads.transform_path(text)
     if text is None:
         message.error("Invalid filename")
         return False
     self.question.answer = text
     return True