class StatusBar(QtGui.QStatusBar): def __init__(self, parent): QtGui.QStatusBar.__init__(self, parent) from camelot.view.controls.busy_widget import BusyWidget self.busy_widget = BusyWidget(self) self.busy_widget.setMinimumWidth(100) self.addPermanentWidget(self.busy_widget, 0) mt = get_model_thread() mt.thread_busy_signal.connect(self.busy_widget.set_busy) # the model thread might allready be busy before we connected to it self.busy_widget.set_busy(mt.busy())
class StatusBar(QtGui.QStatusBar): def __init__(self, parent): QtGui.QStatusBar.__init__(self, parent) from camelot.view.controls.busy_widget import BusyWidget self.busy_widget = BusyWidget(self) self.busy_widget.setMinimumWidth(100) self.addPermanentWidget(self.busy_widget, 0) mt = get_model_thread() mt.thread_busy_signal.connect( self.busy_widget.set_busy ) # the model thread might allready be busy before we connected to it self.busy_widget.set_busy(mt.busy())
def __init__(self, parent=None): from camelot.view.controls.busy_widget import BusyWidget from camelot.view.model_thread import get_model_thread super(Dashboard, self).__init__(parent) desktop = QCoreApplication.instance().desktop() self.resize(desktop.width() * Dashboard.SCALE, desktop.height() * Dashboard.SCALE) self.closemark = CloseMark(QPixmap('close-mark.png'), self) self.setBGColor(Qt.white) busy_widget = BusyWidget(self) busy_widget.setMinimumSize( desktop.width() * Dashboard.SCALE, desktop.height() * Dashboard.SCALE ) #self.addPermanentWidget(busy_widget, 0) mt = get_model_thread() mt.thread_busy_signal.connect( busy_widget.set_busy ) busy_widget.set_busy(mt.busy())
def __init__(self, parent=None): from camelot.view.controls.busy_widget import BusyWidget from camelot.view.model_thread import get_model_thread super(Dashboard, self).__init__(parent) desktop = QCoreApplication.instance().desktop() self.resize(desktop.width() * Dashboard.SCALE, desktop.height() * Dashboard.SCALE) self.closemark = CloseMark(QPixmap('close-mark.png'), self) self.setBGColor(Qt.white) busy_widget = BusyWidget(self) busy_widget.setMinimumSize(desktop.width() * Dashboard.SCALE, desktop.height() * Dashboard.SCALE) #self.addPermanentWidget(busy_widget, 0) mt = get_model_thread() mt.thread_busy_signal.connect(busy_widget.set_busy) busy_widget.set_busy(mt.busy())