コード例 #1
0
ファイル: qtui.py プロジェクト: sriharikapu/ngcccbase
    def __init__(self):
        global wallet
        app = Application()
        if wallet.connected():
            window = MainWindow()
            center = QtGui.QApplication.desktop().screen().rect().center()
            window.move(center - window.rect().center())
            window.show()
        else:  # not connected
            msg = "Couldn't connect to server!"
            QtGui.QMessageBox.critical(None, '', msg, QtGui.QMessageBox.Ok)
            return

        retcode = app.exec_()
        wallet.stop_all()
        sys.exit(retcode)
コード例 #2
0
ファイル: qtui.py プロジェクト: F483/ngcccbase
    def __init__(self):
        global wallet
        app = Application()
        if wallet.connected():
            window = MainWindow()
            center = QtGui.QApplication.desktop().screen().rect().center()
            window.move(center - window.rect().center())
            window.show()
        else: # not connected
            msg = "Couldn't connect to server!"
            QtGui.QMessageBox.critical(None, '', msg, QtGui.QMessageBox.Ok)
            return

        retcode = app.exec_()
        wallet.stop_all()
        sys.exit(retcode)
コード例 #3
0
ファイル: qtui.py プロジェクト: sriharikapu/ngcccbase
 def updateStatus(self):
     self.setStatus(wallet.connected())
コード例 #4
0
ファイル: qtui.py プロジェクト: F483/ngcccbase
 def updateStatus(self):
     self.setStatus(wallet.connected())