mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-12 18:51:50 +02:00
wip git tree
This commit is contained in:
@ -5,6 +5,7 @@ from qtpy.QtGui import QAction, QActionGroup, QIcon
|
||||
from qtpy.QtWidgets import QApplication, QMainWindow, QStyle
|
||||
|
||||
import bec_widgets
|
||||
from bec_lib.endpoints import MessageEndpoints
|
||||
from bec_widgets.utils import UILoader
|
||||
from bec_widgets.utils.bec_widget import BECWidget
|
||||
from bec_widgets.utils.colors import apply_theme
|
||||
@ -36,6 +37,9 @@ class BECMainWindow(BECWidget, QMainWindow):
|
||||
self._init_ui()
|
||||
self._connect_to_theme_change()
|
||||
|
||||
# Connections to BEC Notifications
|
||||
self.bec_dispatcher.connect_slot(self.client_info_cb, MessageEndpoints.client_info())
|
||||
|
||||
def _init_ui(self):
|
||||
|
||||
# Set the icon
|
||||
@ -173,6 +177,10 @@ class BECMainWindow(BECWidget, QMainWindow):
|
||||
return True
|
||||
return super().event(event)
|
||||
|
||||
def client_info_cb(self, msg, meta):
|
||||
msg = msg
|
||||
print(f"Client info received in Waveform: {msg}")
|
||||
|
||||
def cleanup(self):
|
||||
central_widget = self.centralWidget()
|
||||
central_widget.close()
|
||||
|
Reference in New Issue
Block a user