Don't pass prompt object to prompter.
This commit is contained in:
parent
027e7e054e
commit
34a5ad48b2
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user