def __init__(self, *args, **kwargs): super(ItemViewView, self).__init__(*args, **kwargs) # allow zoomkeys to be used to zoom if ZOOMKEYS_ACTIVATED: try: grab_zoom_keys(self.win.winId(), True) except Exception, e: pass
def __init__(self, *args, **kwargs): super(ItemViewView, self).__init__(*args, **kwargs) # remove selection when clic/drag to enable finger scrolling self.suppressor = QWebViewSelectionSuppressor(self.ui.webView) self.suppressor.enable() scroller = self.ui.webView.property("kineticScroller").toPyObject() if scroller: scroller.setEnabled(True) # allow zoomkeys to be used to zoom if ZOOMKEYS_ACTIVATED: try: grab_zoom_keys(self.win.winId(), True) except Exception, e: pass