THis one workd fine:
.option_add('*Font', "Heveltica 14")
Thanks!
Á.
--
http://mail.python.org/mailman/listinfo/python-list
Dnia 2013-01-25, pią o godzinie 20:41 -0800, Angel pisze:
> but the real displayed fonts in the window are smaller (default size of 12,
> maybe).
>
> Am I missing something?
>
> Thanks in advance,
> A.
>
Did you tried this by simple:
---
root = Tk()
root.option_add('*
On Friday, January 25, 2013 10:41:36 PM UTC-6, Angel wrote:
> I am changing the default font for a Tkinter application:
>
>
>
> class FuelControl(Tkinter.Frame):
>
> def __init__(self,master):
>
> self.version='0.02'
>
> self.font=tkFont.Font(family="Helvetica",size=18)
>
class FontSpec:
"""Wrapper for something like 'Arial 10 bold #red'
"""
tkf = None # Tk Font
spec = "" # specification
tkspec = "" # specification for Tk
family = None
size = 0
color = "black"
weight = "normal"
slant = "roman"
underline = 0
overstrike
Dammm it should be Tkinter for subject..:D
--
http://mail.python.org/mailman/listinfo/python-list
I am changing the default font for a Tkinter application:
class FuelControl(Tkinter.Frame):
def __init__(self,master):
self.version='0.02'
self.font=tkFont.Font(family="Helvetica",size=18)
print self.font.actual()
.
.
.
and everything looks ok:
{'family': 'Nimbus San