Need help to pass self.count to other classes.

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Jan 6 16:41:36 CET 2010


Steve Holden a écrit :
(snip)
> This is untested code

indeed !-)

> class kbInterface(object):
>     def __init__(self):
>         self.zxc = 0
>     def prompt1(self):
>         self.count += 1

Ahem...

(snip)





More information about the Python-list mailing list