Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/q/s/qsh-HEAD/app.py   qsh(Download)
# QSH
from networking.connector import Connector
from config import AppConfig, SCREEN_IMAGE_TYPE, SCREEN_IMAGE_QUALITY
from dialogs import ConfigurationDialog, ScreenViewDialog, MainTrayIcon
 
		screenBuf = QtCore.QBuffer(screenBA)
		screenBuf.open(QtCore.QBuffer.WriteOnly)
		QPixmap.grabWindow(self.desktop().winId()).save(screenBuf, SCREEN_IMAGE_TYPE, SCREEN_IMAGE_QUALITY)
 
		self.connector.submitScreen(host_data["host"], host_data["port"], screenBA)

src/q/s/qsh-HEAD/dialogs/screenview.py   qsh(Download)
 
# QSH
from config import APP_UUID, SCREEN_IMAGE_TYPE
 
 
	def processReceivedImage(self, data_uuid, data, known_hosts):
		""" Show received screenshot
		"""
		screen = QtGui.QPixmap()
		screen.loadFromData(data, SCREEN_IMAGE_TYPE)