Don't pass prompt object to prompter.

This commit is contained in:
Florian Bruhin 2014-09-24 22:23:36 +02:00
parent 027e7e054e
commit 34a5ad48b2
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ class Prompt(QWidget):
self.lineedit = PromptLineEdit()
self._hbox.addWidget(self.lineedit)
prompter_obj = prompter.Prompter(self)
prompter_obj = prompter.Prompter()
objreg.register('prompter', prompter_obj)
def __repr__(self):

View File

@ -62,8 +62,8 @@ class Prompter:
_queue: A deque of waiting questions.
"""
def __init__(self, prompt):
self.question = None
def __init__(self):
self._question = None
self._loops = []
self._queue = collections.deque()
self._busy = False