We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1161334 commit 1cce6e1Copy full SHA for 1cce6e1
Board.py
@@ -1,13 +1,18 @@
1
-from kivy.uix.screenmanager import Screen
2
-from kivy.core.window import Window
3
from kivy.app import App
4
-from kivy.uix.widget import Widget
5
-from kivy.uix.scatter import Scatter
6
-from position_of_mouse import find_position
7
from kivy.uix.floatlayout import FloatLayout
+from kivy.core.window import Window
+
+from position_of_mouse import find_position
8
9
class Scatter_Text_widget(FloatLayout):
10
- pass
+ def on_mouse_pos(self, pos):
+ #This function gets the position of the mouse, in chessboard labels
+ position = find_position()
11
+ pos_chess = position.chess_position(pos)
12
+ print(pos_chess)
13
14
15
+ Window.bind(mouse_pos = on_mouse_pos)
16
17
18
0 commit comments