Пример #1
0
    def handle_pushButton(self, pv_name):

        info = epics.cainfo(pv_name, print_out=False)
        print info
        if info:
            msg = info
        else:
            msg = "Unable to get cainfo for PV:<br>'%s'" % pv_name
        dialog_info(sender=self, msg=QtCore.QString(msg))
Пример #2
0
    def handle_action_about(self):

        epics_version = self.monitor.epics_version()

        msg = "Qt Version: %s\n" % Qt.qVersion()
        msg = msg + "PyEpics Version: %s\n" % epics_version[0]
        msg = msg + "Epics DLL: %s\n" % epics_version[1]
        # msg = msg + "MKS Checkpoint: %s\n" % MKS_CHECKPOINT
        msg = msg + "%s" % RELEASE_DATE
        dialog_info(self, msg=msg)
Пример #3
0
 def handle_signal_dialog_info(self, msg):
     dialog_info(sender=self, title=settings.APP_NAME, msg=msg)
Пример #4
0
    def handle_mouse_signal_release(self, position):
        pixel_x = position.x()
        pixel_y = position.y()

        msg = "Mouse clicked at X: %d Y: %d" % (pixel_x, pixel_y)
        dialog_info(sender=self, msg=msg)
Пример #5
0
 def handle_lineEdit_changed(self):
     value = unicode(self.lineEdit_example.text())
     dialog_info(sender=self, msg="User entered: %s" % repr(value))