Greetings Monks,
I would like to change the background colour of a Label in Tk. I made this:
my $test = $mw->Label(-textvariable => \$some_text,
-justify => 'center',
-foreground => 'black',
-background => \$bg_colour,
);
Unfortunately, this does not work (unknown color name "SCALAR(0x8322488)"...). Is there a trick to change the background colour?
Update: The reference was the result of some experimenting. When I remove it, the error is gone, but I still cannot change the colour. I get and keep the background colour when $test is created.
Thank you all, F.