Skip to content

Commit

Permalink
info when clicking board
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Land committed Apr 12, 2020
1 parent c8fd191 commit ab3ddcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.stencilview import StencilView
from kivy.uix.widget import Widget
from kivy.uix.behaviors.button import ButtonBehavior

from controller import Controls
from kivyutils import *
Expand All @@ -23,6 +24,9 @@ def __init__(self, **kwargs):
def on_size(self, *args):
self.redraw()

def on_touch_down(self, touch):
self.controls.hint.text = "Ten Thousand Tsumego does not support 'clicking through' problems. Read out the problem in your head, and move on when you are done."

def draw_stone(self, x, y, col, stone_size, outline_col=None, innercol=None):
draw_circle((self.gridpos_x[x], self.gridpos_y[y]), stone_size, col)
if outline_col:
Expand Down

0 comments on commit ab3ddcc

Please sign in to comment.