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.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):
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user