in reply to Tk and optionAdd's scope
I used the labelpack example from the source as a starting point. Note that I commented out the optionAdd because it didn't make any difference. Also the print statement.#!/usr/bin/perl use strict; use warnings; use Tk; require Tk::LabFrame; require Tk::LabEntry; my $mw = MainWindow->new; $mw->geometry("150x80"); #$mw->optionAdd( "LabFrame.font", "helvb12" ); my $canvas_total = "Label Test"; my $le_t_text = "LabFrame Test"; my $le = $mw->LabEntry( -textvariable => \$canvas_total, -labelVariable => \$le_t_text, -labelPack => [ -anchor => "center" ] ); $le->pack( -expand => 1, -fill => "y" ); #print STDERR $le->optionGet( "font", ref $le ), "\n"; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk and optionAdd's scope
by eff_i_g (Curate) on Apr 16, 2010 at 14:21 UTC | |
by Khen1950fx (Canon) on Apr 16, 2010 at 20:57 UTC |