26 lines
608 B
Python
26 lines
608 B
Python
from PySide6.QtWidgets import QStatusBar
|
|
from PySide6.QtGui import QAction, QIcon
|
|
from PySide6.QtCore import QSize
|
|
|
|
from codes.common import clibs
|
|
from codes.common.signal_bus import signal_bus
|
|
from codes.common.qss_reloader import qss_reloader
|
|
|
|
|
|
class SStatusBar(QStatusBar):
|
|
def __init__(self, parent=None):
|
|
super().__init__(parent)
|
|
self.pre_do()
|
|
self.init_ui()
|
|
self.post_do()
|
|
|
|
def pre_do(self):
|
|
...
|
|
|
|
def init_ui(self):
|
|
self.setObjectName("SStatusBar")
|
|
...
|
|
|
|
def post_do(self):
|
|
qss_reloader.register(clibs.qss_statusbar, self)
|