[wxPython-users] Re: Changing default Font for all controls
Werner F. Bruhin
werner.bruhin at free.fr
Sun Sep 10 01:37:28 PDT 2006
Jeffrey,
Jeffrey Barish wrote:
>Werner F. Bruhin wrote:
>
>
>
>>What does one have to do to change the default Font for all controls?
>>
>>
>
>Change the default font for the parent window. Children inherit. For
>example, the following code in the main frame changes font size for all
>descendents:
>
> font = self.GetFont()
> font.SetPointSize(16)
> self.SetFont(font)
>
>
I did something like this using the FontDialog but nothing happens.
Just now used the above code and nothing happens, including changing to
PointSize to "32", so I should really see a change.
I attached the code I use.
Version info:
# Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
# wxPython 2.6.3.3, Boa Constructor 0.4.4
>Check documentation for wxWindow for more information.
>
>
Did that too, but still can not figure out what I am doing wrong.
Werner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FontChange.py
Type: application/x-python
Size: 1803 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20060910/7215771e/FontChange.bin
More information about the wxpython-users
mailing list