def addControllerComboItems(self):
     db = Database()
     items = [""]
     items.extend(db.get_device_exported("*/elotech*").value_string)
     items.extend(db.get_device_exported("*/bestec*").value_string)
     self.controllerCombo.addItems(
         sorted(i for i in items if not i.startswith("dserver")))
 def addPressureComboItems(self):
     db = Database()
     items = [""]
     items.extend(db.get_device_exported("*/vgct*").value_string)
     items.extend(db.get_device_exported("*/mks*").value_string)
     self.pressureCombo.addItems(
         sorted(i for i in items if not i.startswith("dserver")))
예제 #3
0
def getSubDevice(filter):
    exportedDevices = dict()
    db = Database()
    eDevices = db.get_device_exported(filter).value_string
    for eDevice in eDevices:
        sd = db.get_device_property(eDevice, "__SubDevices")["__SubDevices"]
        for s in sd:
            exportedDevices[s] = eDevice
    return exportedDevices