class MyMonitor(QWidget):
        def __init__(self, parent = None):
                super(MyMonitor, self).__init__(parent)
                self.ui = Ui_Form()
                self.ui.setupUi(self)
                self.controller = None
                
        def conecta(self, mainWindow, controller):
                self.controller = controller
                self.ui.lbPaciente.setCursor(QCursor(Qt.PointingHandCursor))
                self.ui.lbPaciente.mousePressEvent = lambda event: self.ui.lbPaciente.emit(SIGNAL("clicked()"))
                QObject.connect(self.ui.lbPaciente, SIGNAL('clicked()'), lambda fonte = self: mainWindow.trocaControle(fonte))
Exemplo n.º 2
0
class MyMonitor(QWidget):
    def __init__(self, parent=None):
        super(MyMonitor, self).__init__(parent)
        self.ui = Ui_Form()
        self.ui.setupUi(self)
        self.controller = None

    def conecta(self, mainWindow, controller):
        self.controller = controller
        self.ui.lbPaciente.setCursor(QCursor(Qt.PointingHandCursor))
        self.ui.lbPaciente.mousePressEvent = lambda event: self.ui.lbPaciente.emit(
            SIGNAL("clicked()"))
        QObject.connect(self.ui.lbPaciente,
                        SIGNAL('clicked()'),
                        lambda fonte=self: mainWindow.trocaControle(fonte))
 def __init__(self, parent = None):
         super(MyMonitor, self).__init__(parent)
         self.ui = Ui_Form()
         self.ui.setupUi(self)
         self.controller = None
Exemplo n.º 4
0
 def __init__(self, parent=None):
     super(MyMonitor, self).__init__(parent)
     self.ui = Ui_Form()
     self.ui.setupUi(self)
     self.controller = None