Class variables / global variables / Init variables
abouf066 at aix2.uottawa.ca
abouf066 at aix2.uottawa.ca
Mon May 15 11:04:32 EDT 2000
Greetings all,
I have a piece of code in which some variables are considered as
init variables ( something like the width of the windows in the gui, ...).
So far I am using constructions of the form :
class myClass :
myVariable = 10
def __init__(self):
global myVariable
newWindow = myWindow(myVariable) # Here I call
I wonder wether there is a better to achieve the same goal (class
variables or othere means)
Thanks all
_____________________________________________________________
LaBoufarikoise
More information about the Python-list
mailing list