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.lineedit = PromptLineEdit()
self._hbox.addWidget(self.lineedit) self._hbox.addWidget(self.lineedit)
prompter_obj = prompter.Prompter(self) prompter_obj = prompter.Prompter()
objreg.register('prompter', prompter_obj) objreg.register('prompter', prompter_obj)
def __repr__(self): def __repr__(self):

View File

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