[Tutor] Calling a function within a function within a class...
Trey Keown
trey at opmstech.org
Sat Nov 10 02:58:24 CET 2007
Hey all...
I'm creating a module for my program, and I need to call a function.
Here's how it's set up:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
class DoStuff:
def Thing1(self):
def ThingToCall(self):
print "It worked!"
def Thing2(self):
#Call the function "ThingToCall" here.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thanks for any help. I haven't used classes that much before...
More information about the Tutor
mailing list