setPalette Oddities. 
Author Message
 setPalette Oddities.

I am having problems with getting setPalette to work  The following program:

-----

#!/usr/local/bin/perl -w
use Tk;
my $top = MainWindow->new();
print "$Tk::version $Tk::VERSION\n";
my $bar = $top->Label(-text => "Foo")->pack;
#Does Nothing.
$top->setPalette("background" => "#00dddd");
#Sort of Works.
#$bar->configure(-background => "#00dddd");
#Finishes everything
#$top->configure(-background => "#00dddd");

MainLoop;

-----

returns "8.0 800.011" on my NT box, and it works as I would expect.

However, on the solaris box it returns "8.0 800.012" and I have to
uncomment the two configure commands for it to work.  Am I
missing something here?

Wayne McCullough



Mon, 19 Aug 2002 03:00:00 GMT  
 setPalette Oddities.

Quote:

> I am having problems with getting setPalette to work  The following program:

> -----

> #!/usr/local/bin/perl -w
> use Tk;
> my $top = MainWindow->new();
> print "$Tk::version $Tk::VERSION\n";
> my $bar = $top->Label(-text => "Foo")->pack;
> #Does Nothing.
> $top->setPalette("background" => "#00dddd");
> #Sort of Works.
> #$bar->configure(-background => "#00dddd");
> #Finishes everything
> #$top->configure(-background => "#00dddd");

> MainLoop;

> -----

> returns "8.0 800.011" on my NT box, and it works as I would expect.

> However, on the solaris box it returns "8.0 800.012" and I have to
> uncomment the two configure commands for it to work.  Am I
> missing something here?

Please try the latest stable version (800.015). There was a version in
the past with configure problems.

Regards,
        Slaven

--
use Tk;$c=tkinit->Canvas(-he,20)->grid;$x=5;map{s!\n!!g;map{create$c 'line'=>
map{$a=-43+ord;($x+($a>>3)*2=>5+($a&7)*2)}split''}split"!";$x+=12}split/_/=>'K
PI1_+09IPK_K;-OA1_+K!;A__1;Q!7G_1+QK_3CLPI90,_+K!;A_+1!KQ!.N_K+1Q!.F_1+KN.Q__1+
KN._K+1Q!.F_1+KN.Q_+1Q__+1!KQ!.N_1;Q!7G_K3,09Q_+1!K.Q_K+1Q!.F_1+KN.Q_';MainLoop



Mon, 19 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. setPalette on Solaris/CDE??

2. setPalette

3. setPalette doesn't work?

4. "SetPalette for Day and Night" Howto

5. setPalette doesn't set color for Tk::Notebook tabs or Menus

6. setPalette on Tk8/Windows ?

7. -pi -e Oddity

8. DBI and backreference oddity

9. ftpmail and Perl oddity

10. Interpolating oddities (to me).

11. Net::Telnet Oddity

12. small oddities in perl5 source

 

 
Powered by phpBB® Forum Software