Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(1)  |  Import(1)

src/p/y/pythello-0.1/pythello/boardtk.py   pythello(Download)
 
 
from board import Board, Piece
from functools import partial
from time import sleep
class PieceTk(Piece):
    def __init__(self, r, c, color, canvas):
        Piece.__init__(self, r, c, color)
        self.canvas = canvas
        self.oval = Oval(canvas, c*S, r*S, (c+1)*S, (r+1)*S, fill=color)