def handleMouseButtonEvent(self, comp, event):
     PyGUIBase.handleMouseButtonEvent(self, comp, event)
     pos = self._getWebCoordinates(event.cursorPosition)
     if pos is None:
         return False
     else:
         if event.isKeyDown():
             setFocusedComponent(self.component)
         self.webPage.handleMouseButtonEvent(pos, event.isKeyDown())
         return True
示例#2
0
 def handleMouseButtonEvent(self, comp, event):
     PyGUIBase.handleMouseButtonEvent(self, comp, event)
     pos = self._getWebCoordinates(event.cursorPosition)
     if pos is None:
         return False
     else:
         if event.isKeyDown():
             setFocusedComponent(self.component)
         self.webPage.handleMouseButtonEvent(pos, event.isKeyDown())
         return True