Пример #1
0
	def mousePressEvent(self, event):
		TiledCanvas.mousePressEvent(self, event)
		if event.button() == Qt.LeftButton:
			self.mouse_button_down = True
			self.on_click(event)
Пример #2
0
	def mousePressEvent(self, event):
		TiledCanvas.mousePressEvent(self, event)
		self.info.set_current_tile(self.get_tile_id())