Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Text(QTextEdit):
- ...
- def mousePressEvent(self, event):
- if event.button()==Qt.LeftButton:
- return "test"
- class OtherWidget(QWidget):
- ...
- self.label.setText(?) # <=== How to put it here?
- self.label.setText(Text().mousePressEvent())
Add Comment
Please, Sign In to add comment