示例#1
0
 def scan_AN24(self):
     self.__init__()
     self.AN24Dict = scan_bt()
     self.AN24List = self.addItems(self.AN24Dict)
     self.exec_()
     try:
         return self.deviceChosen
     except AttributeError, reason:
         return False
示例#2
0
 def __init__(self, parent = None):
     """
     Constructor
     """
     QDialog.__init__(self, parent)
     self.setupUi(self)
     
     self.AN24Dict=scan_bt()
     self.NameList=[]
     self.Address=''
     self.Name=''
     self.timerScan = QTimer()
     self.n=0
     self.startTime = 0
     self.allTime = 0
     self.Cache = []
     QtCore.QObject.connect(self.timerScan, SIGNAL("timeout()"),self.addItems)
     for key in self.AN24Dict:
         self.NameList.append(key)
     self.timerScan.start(1000)
     self.DlgCntAN24 = CntAN24(self) 
示例#3
0
    def __init__(self, parent=None):
        """
        Constructor
        """
        QDialog.__init__(self, parent)
        self.setupUi(self)

        self.AN24Dict = scan_bt()
        self.NameList = []
        self.Address = ''
        self.Name = ''
        self.timerScan = QTimer()
        self.n = 0
        self.startTime = 0
        self.allTime = 0
        self.Cache = []
        QtCore.QObject.connect(self.timerScan, SIGNAL("timeout()"),
                               self.addItems)
        for key in self.AN24Dict:
            self.NameList.append(key)
        self.timerScan.start(1000)
        self.DlgCntAN24 = CntAN24(self)
示例#4
0
 def scan_AN24(self):
     self.__init__()
     self.AN24_nameDict = scan_bt()
     self.AN24_nameList = self.addItems(self.AN24_nameDict)
     self.exec_() 
     return self.deviceChosen
示例#5
0
 def scan_AN24(self):
     self.__init__(self)
     self.AN24_nameDict = scan_bt()
     self.AN24_nameList = self.addItems(self.AN24_nameDict)
     self.exec_()
     return self.deviceChosen