GUI, namespaces and OO
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

GUI, namespaces and OO

From: Silas Justiniano <silasju@gmail.com>
Date: Sat Oct 29 2005 - 21:46:02 CEST

Hello all.

I don't know much about namespaces. I know only to write the following
code:

#start ---
namespace eval my {}

toplevel .t
entry .t.b -textvariable my::myentry
#end ---

If I [destroy .t], the namespace [my] still exists. I could learn some
of the namespace commands to destroy them when the toplevel is
destroyed, or unset all variables automaticaly.

I would like just to know if one of the available OO extensions could
make it automatically for me.

I could pass local variables as parameters to a proc which creates
another toplevel. The problem are binds. Binds don't take variables
from the local scope, I need to use namespaces or globals again.

Thank you very much again.

Silas.
Received on Mon Nov 21 00:37:06 2005