522 self.cw.installEventFilter(self) |
522 self.cw.installEventFilter(self) |
523 size = self.cw.size() |
523 size = self.cw.size() |
524 self.setCentralWidget(self.cw) |
524 self.setCentralWidget(self.cw) |
525 self.resize(size) |
525 self.resize(size) |
526 |
526 |
527 def eventFilter(self, obj, event): |
527 def eventFilter(self, _obj, event): |
528 """ |
528 """ |
529 Public method to filter events. |
529 Public method to filter events. |
530 |
530 |
531 @param obj reference to the object the event is meant for |
531 @param _obj reference to the object the event is meant for (unused) |
532 @type QObject |
532 @type QObject |
533 @param event reference to the event object |
533 @param event reference to the event object |
534 @type QEvent |
534 @type QEvent |
535 @return flag indicating, whether the event was handled |
535 @return flag indicating, whether the event was handled |
536 @rtype bool |
536 @rtype bool |