How to use the guiscrcpy.mapper.MapperUI function in guiscrcpy

To help you get started, we’ve selected a few guiscrcpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github srevinsaju / guiscrcpy / guiscrcpy / mapper.py View on Github external
def sth():
    import sys

    app = QtWidgets.QApplication(sys.argv)
    window = MapperUI()
    
    sys.exit(app.exec_())
github srevinsaju / guiscrcpy / guiscrcpy / mapper.py View on Github external
def eventFilter(self, source, event):
        if source is self.label and event.type() == QtCore.QEvent.Resize:
            self.label.setPixmap(
                self.pixmap.scaled(self.label.size(), QtCore.Qt.KeepAspectRatio)
            )
        return super(MapperUI, self).eventFilter(source, event)