예제 #1
0
파일: itemview.py 프로젝트: kshwetabh/GRead
 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
예제 #2
0
    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