Skip to content

Commit

Permalink
Adding parent to console widget
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtitus committed Oct 30, 2024
1 parent 3509dba commit 34d3155
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bluesky_widgets/qt/ipython_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ class QtReIPythonConsole(QWidget):

signal_update_widget = Signal(object)

def __init__(self, model):
def __init__(self, model, parent=None):
"""
Initializes the IPythonConsoleTab widget, setting up the IPython console,
kernel manager, and kernel client, and connecting them together.
"""

super().__init__()
super().__init__(parent)
self.kernel_label = QLabel("Kernel Status: Not Connected")
self.REClientModel = model
self.REClientModel.events.status_changed.connect(self.on_update_widgets)
self.model = model
self.model.events.status_changed.connect(self.on_update_widgets)
self.signal_update_widget.connect(self.slot_update_widgets)

# Create main layout
Expand Down Expand Up @@ -108,7 +108,7 @@ def connect_to_kernel(self):
self.vbox.insertWidget(1, self.console)

# Setup kernel connection
msg = self.REClientModel._client.config_get()
msg = self.model._client.config_get()
connect_info = msg["config"]["ip_connect_info"]

self.kernel_manager = QtKernelManager()
Expand Down

0 comments on commit 34d3155

Please sign in to comment.