space)
self.canvas.config(scrollregion=self.canvas.bbox(ALL))
def g2c(self, coord):
"""Converts grid locations to their actual coordinates on
the drawing canvas"""
return (coord * self.GSPACE) + self.OFFSET + (self.GSPACE /
I personally learned a lot from www.diveintopython.org
On Mon, Apr 6, 2009 at 2:08 PM, Avi wrote:
> Hi,
>
> What is a good way to learn Python?
>
> Do you recommend going by a book (suggestions welcome) or learning
> with tutorials? Both?
>
> Thanks in advance,
> Avi
> --
> http://mail.python.or
I'm new to python, so keep that in mind.
I have a tk Canvas that I'm trying to draw on, and I want to start my
drawing at an offset (from 0) location. So I can tweak this as I code, I
set this offset as a class level variable:
def ClassName:
OFFSET = 20
def __init__(self, master)):