>________________________________
> From: Mark Goldstein <[email protected]>
>To: Perl Israel <[email protected]> 
>Sent: Sunday, December 4, 2011 1:47 PM
>Subject: [Israel.pm] Is it possible to associate variable with GUI element in 
>wxPerl?
> 
>
>Hi,
>
>
>I've had some experience with making simple GUI for Perl applications using 
>Perl-Tk.
>I'm now trying to do the same with wxPerl.
>
>
>In Perl-Tk I could do the following:
>    $MyLabel = $MF->Label(-textvariable => \$Ver)->pack(-side => "top", 
>-anchor => "nw"); 
>
>
>This way a label (static text control) or other control got associated with 
>the Perl variable $Ver. Assigning the new value to the variable automatically 
>changed the text in GUI element.
>
>
>I could not figure out how to do the same with wxPerl (or is it possible at 
>all?).
>Could someone please advise or refer to some documentation or examples?


I've checked how it is implemented in Perl-Tk. They use Tie::Watch for such 
variables under the hood.
So probably I should either use this module directly, or explicitly call 
"SetValue" or similar methods where my variable changes.

-- Mark

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to