示例#1
0
        pass

    def RequestTransfer(self, path, bytes_data):
        state, _ = self.client.MakeRequest("TRANSFER " + path + " ", bytes_data)
        if state != ClientState.SUCCEEDED:
            QMessageBox.about(self, "", "Error")
        pass

    def ShowWindow(self):
        self.setupUI()
        self.show()
        pass

if __name__ == '__main__':
    from os import environ
    import sys
    import client

    def suppress_qt_warnings():
        environ["QT_DEVICE_PIXEL_RATIO"] = "0"
        environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
        environ["QT_SCREEN_SCALE_FACTORS"] = "1"
        environ["QT_SCALE_FACTOR"] = "1"

    suppress_qt_warnings()

    app = QApplication(sys.argv)
    demo = DirectoryUI(None, client.ClientProgram())
    demo.ShowWindow()
    sys.exit(app.exec_())
示例#2
0
    def ShowWindow(self):
        self.setupUI()
        self.show()
        pass


class ApplicationUI(ProcessUI):
    def __init__(self, parent, client):
        super().__init__(parent, client)
        self.baseRequest = "APPLICATION"
        self.windowName = "Application"
        self.headings = ('Application Name', 'Process ID', 'Thread Count')


if __name__ == '__main__':
    from os import environ
    import sys
    import client

    def suppress_qt_warnings():
        environ["QT_DEVICE_PIXEL_RATIO"] = "0"
        environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
        environ["QT_SCREEN_SCALE_FACTORS"] = "1"
        environ["QT_SCALE_FACTOR"] = "1"

    suppress_qt_warnings()

    app = QtWidgets.QApplication(sys.argv)
    demo = ApplicationUI(None, client.ClientProgram())
    demo.ShowWindow()
    sys.exit(app.exec_())
示例#3
0
    def ShowWindow(self):
        self.setupUI()
        self.show()
        pass

    def CleanUp(self):
        self.onUnhook()
        self.onUnlock()
        self.onClear()
        return super().CleanUp()


if __name__ == '__main__':
    from os import environ
    import sys
    import client

    def suppress_qt_warnings():
        environ["QT_DEVICE_PIXEL_RATIO"] = "0"
        environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
        environ["QT_SCREEN_SCALE_FACTORS"] = "1"
        environ["QT_SCALE_FACTOR"] = "1"

    suppress_qt_warnings()

    app = QtWidgets.QApplication(sys.argv)
    tmp = client.ClientProgram()
    demo = InputUI(None, tmp)
    demo.setupUI()
    demo.ShowWindow()
    sys.exit(app.exec_())
示例#4
0
    def ShowWindow(self):
        self.setupUI()
        self.show()
        pass

    def OnExitGUI(self):
        self.CleanUp()
        self.close()
        self.parentWindow.HandleChildUIClose(self.baseRequest)
        self.parentWindow.show()


if __name__ == '__main__':
    from os import environ
    import sys
    import client

    def suppress_qt_warnings():
        environ["QT_DEVICE_PIXEL_RATIO"] = "0"
        environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
        environ["QT_SCREEN_SCALE_FACTORS"] = "1"
        environ["QT_SCALE_FACTOR"] = "1"

    suppress_qt_warnings()

    app = QtWidgets.QApplication(sys.argv)
    demo = ScreenShotUI(None, client.ClientProgram())
    demo.setupUI()
    demo.ShowWindow()
    sys.exit(app.exec_())