Re: calling the function of one class from another class

2007-09-24 Thread Mridula Ramesh
thanks! ... sorry, i lacked access to the internet for a bit there... um, no, i'm not trying to write in java style in python, because i don't even know java!! i tried the "self" thing but that wasnt enough. I had to (as Furkan Kuru said) use a new instance of that class and only then call the func

Re: calling the function of one class from another class

2007-09-24 Thread cmpython
On Sep 24, 2:27 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Furkan Kuru wrote: > > > On 9/22/07, *Mridula Ramesh* <[EMAIL PROTECTED] > > > wrote: > > > hi. > > > i currently have code structured like this: > > > classA(): > > def __init__(): >

Re: calling the function of one class from another class

2007-09-24 Thread Steve Holden
Furkan Kuru wrote: > > > On 9/22/07, *Mridula Ramesh* <[EMAIL PROTECTED] > > wrote: > > hi. > > i currently have code structured like this: > > classA(): > def __init__(): > .. > .. >

Re: calling the function of one class from another class

2007-09-22 Thread Furkan Kuru
On 9/22/07, Mridula Ramesh <[EMAIL PROTECTED]> wrote: > > hi. > > i currently have code structured like this: > > classA(): > > def __init__(): > > .. > > .. > > > > def fnc1(): > > > > > > > > > > classB():

calling the function of one class from another class

2007-09-22 Thread Mridula Ramesh
hi. i currently have code structured like this: classA(): > def __init__(): > .. > .. > > def fnc1(): > > > > > classB(): >def __init__(): > >