Extracting font size ONLY from text widget with -cget 
Author Message
 Extracting font size ONLY from text widget with -cget

I created a small editor  in Perl/TL and wanted to give the user the
possibility to change the font family and size indepently in the text
frame for convenience. This is achieved via a subroutine bound to two
option menus. The subs read like:


BUT, when a new font is selected, the size is resetted to standard
size, and when a new size is selected, the font is set back to
standard font.
I tried to modify the subs by first extracting the current font
size/family and then assigning it explicitly again like this

but this command is ignored!
How can I get the option of an option via cget?
Thanx a lot!

Tue, 27 Dec 2005 18:22:02 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Extracting the Text widget current size

2. Canvas text item font size.

3. Q: representing 0 font with characters in text widget

4. Fonts stuff for Text widget

5. cget on composite widget after Configspec

6. Getting size of Tk Text widget

7. Problems with cget and Button widget

8. Text tag cget broken?

9. Tk::Text text width with non-fixed fonts

10. CGI.pm and font size

11. GD::Graph axis font size

12. Perl GD::Graph how to set font size


Powered by phpBB® Forum Software