Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Tkinter fonts setting
Unnamed One
2/6/2008 4:03:00 PM
jim-on-linux wrote:
> On Tuesday 05 February 2008 15:22, Unnamed
> One wrote:
>
>> First question - is it possible to set
>> font to default OS font for window text?
>> It would be preferable, while on my
>> Windows XP system Tkinter sets small
>> Helvetica-style font by default.
>>
>> Secondly, can I set font globally (or
>> specify "default" font for widgets)? In
>> fact, all I want is to get default OS font
>> unless (rarely) I need to specify another.
>>
>> Thanks
>>
>
>
> Go to:
>
http://www.pythonware.com/library/tkinter/int...
>
> Read chapter 6, Widget Styling, there is a
> section on Fonts which has a sub-section on
> System Fonts.
>
> jim-on-linux
>
http://www.in...
>
These are fonts supported by individual systems, but not fonts set there
as default.
Regarding my questions, I guess both are impossible in Tkinter (as I
didn't found anything about that in any Tkinter documentation), but
there still must be a way to get the default OS font name and size
(maybe outside of Tkinter), because it's always advised to use them in
applications.
Otherwise text, for example, will always be too large or too small on
some screens.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Tkinter fonts setting
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password