Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mousePressEvent(self, event):
- if event.button()==QtCore.Qt.RightButton:
- pos = event.pos()
- print(pos)
- self.update()
- super(Ui_Form, self).mousePressEvent(event)
- ###################################################################3
- def mouseMoveEvent(self, event):
- # if self.leftState%2:
- # self.leftState -= 1
- if self.mysz == 2:
- position = event.pos()
- print(position)
- #self.onMouseMoved.emit()
- def mousePressEvent(self, event):
- if event.button()==QtCore.Qt.RightButton:
- self.mysz = 2
- super(Ui_Form, self).mousePressEvent(event)
- def mouseReleaseEvent(self, event):
- self.mysz = 0
- print("hmmmmmmmmm")
- #########################################################
- def mouseMoveEvent(self, event):
- # if self.leftState%2:
- # self.leftState -= 1
- if self.mysz == 2:
- position = event.pos()
- self.bohater.pos_x = int(position.x())
- print(self.bohater.pos_x)
- self.scene.update()
- self.update()
- #self.onMouseMoved.emit()
- def mousePressEvent(self, event):
- if event.button()==QtCore.Qt.RightButton:
- self.mysz = 2
- super(Ui_Form, self).mousePressEvent(event)
- def mouseReleaseEvent(self, event):
- self.mysz = 0
- print("hmmmmmmmmm")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement