Tk has some nice features that aren't seen in most other GUI frameworks.
And this is one of them.

You have to use getters and setters
->SetLabel
->GetLabel
->SetValue
->GetValue
...

Peter

On Sun, 2011-12-04 at 03:47 -0800, Mark Goldstein wrote:
> 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?
> 
> 
> TIA,
> 
> -- Mark Goldstein 
> 
> 
> _______________________________________________
> Perl mailing list
> [email protected]
> http://mail.perl.org.il/mailman/listinfo/perl


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

Reply via email to