alex wrote:
> Hi,
>
> is it possible to create 'global' variables that can be seen in all
> other classes?
>
> Alex
Hello,
What about using a class?

Py> class globalVar:
...    pass

Py> globals = globalVar()

Now you can assign 'variables' to it.
And use it anywhere you need it.

Py> globals.image_height = (255,777)
Py> globals.image_mode = 'RGB'
Py> globals.image_names = ['this.jpg', that.jpg']
etc...
hth, 
M.E.Farmer

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to