Guest User

Untitled

a guest
Nov 13th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class Text(QTextEdit):
  2. ...
  3.  
  4. def mousePressEvent(self, event):
  5. if event.button()==Qt.LeftButton:
  6. return "test"
  7.  
  8. class OtherWidget(QWidget):
  9. ...
  10. self.label.setText(?) # <=== How to put it here?
  11.  
  12. self.label.setText(Text().mousePressEvent())
Add Comment
Please, Sign In to add comment