示例#1
0
    def __init__(self, parent=None):
        """
        Constructor
        """
        QMainWindow.__init__(self, parent)
        PThreadProcess.__init__(self)

        self.setupUi_login(self)
        self.setWindowTitle(u"AtomQQ")

        # 得到桌面控件
        desktop = QApplication.desktop()
        # 得到屏幕可显示尺寸
        rectScr = desktop.availableGeometry()
        rectMain = self.geometry()
        rectMain.moveTo(rectScr.width() - rectMain.width(), rectMain.y())

        self.setGeometry(rectMain)

        self.show()
        self.setVisible(False)
        self.startPoll()
示例#2
0
 def __init__(self, parent = None):
     """
     Constructor
     """
     QMainWindow.__init__(self, parent)
     PThreadProcess.__init__(self)
     
     self.setupUi_login(self)
     self.setWindowTitle(u"AtomQQ")
     
     # 得到桌面控件
     desktop = QApplication.desktop()
     # 得到屏幕可显示尺寸
     rectScr = desktop.availableGeometry()
     rectMain=self.geometry()
     rectMain.moveTo(rectScr.width()-rectMain.width(),rectMain.y())
     
     self.setGeometry(rectMain)
     
     self.show()
     self.setVisible(False)
     self.startPoll()
示例#3
0
    def __init__(self, parent = None):
        """
        Constructor
        """
        QDialog.__init__(self, parent)
        PThreadProcess.__init__(self)
        
        self.parent=parent
        
        self.setupUi(self)
        self.setCheckAreaVisibale(False)

        #开始论讯
        self.startPoll()
        
        self.threadGetCodeStr=ThreadGetCodeStr()
        self.threadGetCodeStr.connect(self,self.processCodeResult)
        
        self.threadGetCodeImg=ThreadGetCodeImg()
        self.threadGetCodeImg.connect(self,self.processImgResult)
        
        self.threadPreLogin=ThreadPreLogin()
        self.threadPreLogin.connect(self,self.processPreLoginResult)