python - How to change font for entire wxPython application -


I have a wxPython application (using 2.8), created with Python 2.7.

Is there any way to change the font for the whole application? I mean, I would like to change the font for any wx.StaticText, wx.Button, wx.Combo for each widget that shows "text", I need to use the C ++ wrapper (wxWidgets), if Yes, then how?

You should be able to set the legacy according to this thread to set all the widgets in the same font. To do this:

  • This idea is to set the font at the top level parents, such as wx.Panel then all Children will inherit that font.

    This indicates that you have to set the font before creating widgets. If you need to change the font later, you have to be repeated on the hair widgets, you have to set your font individually. I use parent. Get Child () to get all or most of these.


    Comments

    Popular posts from this blog

    import - Python ImportError: No module named wmi -

    Editing Python Class in Shell and SQLAlchemy -

    c# - MySQL Parameterized Select Query joining tables issue -