Пример #1
0
def main():
    import sys

    app = QApplication(sys.argv)
    server = Server()
    QGuiApplication.setApplicationDisplayName(
        server.tr("Local Fortune Server"))
    server.show()
    sys.exit(app.exec_())
Пример #2
0
def main():
    import sys

    app = QApplication(sys.argv)
    client = Client()
    QGuiApplication.setApplicationDisplayName(
        client.tr("Local Fortune Client"))
    client.show()
    sys.exit(app.exec_())