Easy perltk question.
How do I change the window font?
It's like 5 times bigger than everything on my desktop. Can't find anything describing how to do this. A good source of examples or documentation would be very helpful. Thanks. |
I found it.
I found some info in the man page.Here is how you do it. Code:
#!/usr/bin/perl -w |
You can also save fonts in the MainWindow object, and refer to them by name. This makes it a little easier to change the appearance of your app at a later date (single point of modification):
Code:
#!/usr/bin/perl -w |
Tk is quite nice for quick ugly GUI apps. Using TCL instead of Perl is also worth a look - TCL crops up in all sorts of places so it's useful to know, and it's very easy to learn.
|
All times are GMT -5. The time now is 06:22 AM. |