Hi,

I am trying to set up an associative array 
where the values are method calls (specifically 
widget creation calls) for Tk.

Ex: (I know this doesn't work)

%Valid=(
        "hostname"  => 
Entry("width"=>30,"background"=>'darkgreen',-textvariable=>\$curval{"hostname"})
)

The problem is that I am not sure how to quote the value 
associated to "hostname" so that later in the program
I can do this:

$prop{"hostname"}=$rightframe->$Valid{"hostname"}->pack("side"=>'right');

where $rightframe is a Frame object.
and insert the corresponding method between the arrows to realize the Entry box.


                Thanks,

                        -Tim K.

                        (longtime lurker, first time [I think] poster)


_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to