Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

tk environement
iam under debian testing and i try to have nice police with tk wigets.

the default police is very ugly and sometime it's impossible to read
inside the tk wigets

someone kown where do i can change this default police ?

thanks
God


Report this thread to moderator Post Follow-up to this message
Old Post
God
05-07-05 01:57 PM


Re: tk environement
not "police" but "font" and sorry for my english ;)


Report this thread to moderator Post Follow-up to this message
Old Post
God
05-07-05 01:57 PM


Re: tk environement
God wrote:
> not "police" but "font" and sorry for my english ;)

You should be able to override the default font when starting
your script.

%> tkScript.pl -font "Arial 14"

This should now set all fonts to Arial 14"

If you want to do this without providing the command line
argument you can try. Some of the option* methods.
I have use a resource file that my gui reads before starting
up to change all background colors and fonts.

$mw->optionReadfile("path to resource file")

The file contains the following entries:

*background:          wheat2
*foreground:          black
*selectColor:         maroon
*selectBackground:    white
*selectForeground:    red
*troughColor:         gray60
*disabledBackground:  gray85
*disabledForeground:  gray60
*activeBackground:    #f5edb3
*activeForeground:    blue
*Text*foreground:     black
*Entry*foreground:    black
*font:
-*-lucidatypewriter-bold-r-normal-*-13-*-*-*-*-*-*-*
*Entry*font:          -*-courier-medium-r-normal-*-12-*-*-*-*-*-*-*

So you see I have modified all the default behaviors with my
own customization. I just have the script read this file when
it starts up. After that all widgets honor these settings.
So you can try this approach.

See User Customization (chapter 16) in Mastering Perl Tk.

Hope this helps,

Mike


Report this thread to moderator Post Follow-up to this message
Old Post
Michael van Nieuwenhuize
05-15-05 12:13 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.