I have some ruby tk code that uses the new Tile styles.
I see no difference at all, when I do this over just a regular button.
Can someone point to what might be the problem?
Here is the code:
I defined the new style Normal.TButton:
Tk::Tile::Style.configure(‘Normal.TButton’, { “background” => ‘blue’,
“foreground” => ‘white’, “padding” => 5})
Now I use it (notice the style ‘Normal.TButton’:
Tk::Tile::Button.new(content) {text lbl; command proc{docommand("%s" %
[k]); style ‘Normal.TButton’} }.grid( :column => 1, :row => (row +=
1),
:sticky => ‘w’)
But the button shows up as if I had not define/used the style.
If it makes a difference: I am running the code on a raspberry pi.And I
have ssh’d from OSX (Yosemite)
If you would like to see the entire code, I can post that. But I wanted
to
show the two lines that are pertinent to the discussion.
Thankyou in advance.
Jerry
–
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not “Eureka!” but “That’s funny…”.- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson