File tree Expand file tree Collapse file tree 3 files changed +271
-258
lines changed Expand file tree Collapse file tree 3 files changed +271
-258
lines changed Original file line number Diff line number Diff line change 11from kivy .uix .screenmanager import Screen
22from kivy .core .window import Window
33from kivy .app import App
4-
4+ from kivy .uix .widget import Widget
5+ from kivy .uix .scatter import Scatter
56from position_of_mouse import find_position
7+ from kivy .uix .floatlayout import FloatLayout
68
7- class board_setup (Screen ):
8-
9- def on_mouse_pos (self , pos ):
10- #This function gets the position of the mouse, in chessboard labels
11- position = find_position ()
12- print (position .chess_position (pos ))
13-
14-
15- def touched (self , id ):
16- print (id )
17-
18-
19- def release (self ):
20- print ("RRR" )
21-
22-
9+ class Scatter_Text_widget (FloatLayout ):
10+ pass
2311
24- Window .bind (mouse_pos = on_mouse_pos )
2512
2613
2714#Builds the App
2815class window (App ):
2916 def build (self ):
30- return board_setup ()
17+ return Scatter_Text_widget ()
Original file line number Diff line number Diff line change 22from kivy .config import Config
33from kivy .core .window import Window
44
5+
56def setup ():
7+
68 width_of_board = 820
79 height_of_board = 800
810
@@ -27,7 +29,7 @@ def setup():
2729'''
2830TODO LIST
2931
30-
32+ FIX THE SPACING OF THE BUTTONS
3133
32342.5 CODE A DRAGGING SYSTEM AND A TOUCH-BASED SYSTEM
3335 2.75 MAKE THE DRAGGING SYSTEM HAVE THE PIECES MOVE A LAYER UP FROM THE BOARD
You can’t perform that action at this time.
0 commit comments