Pygtk: how to change the whole app font size
Hi,
I made a pygtk app, and want to use the +/- buttons to change the whole app font size (yeah, I'm becoming old quickly...). I know how to do that with pango in each widget, but I want to change ALL sizes at once. Any help will be appreciated! Thanks, L. |
Re: Pygtk: how to change the whole app font size
No one?
I googled for this and was unable to find the answer... :( |
Re: Pygtk: how to change the whole app font size
My opinion is that every widget inherits its pango context from its container parent. I don't think it makes a copy. But if it does, I would just make a recursive call starting at the top level window.
Maybe use the gtk.Container.get_children() call The pseudo code might look something like this: Code:
window.changePango(window) Check gtk.Container for more info. |
Re: Pygtk: how to change the whole app font size
Please note my edits. My first pseudo code was out-to-lunch.
|
Re: Pygtk: how to change the whole app font size
Quote:
In fact, I changed the menu font and all its children and parents, without any success... Thanks! L. |
Re: Pygtk: how to change the whole app font size
Quote:
Thanks, L. |
Re: Pygtk: how to change the whole app font size
Quote:
Code:
yes Code:
import gobject |
Re: Pygtk: how to change the whole app font size
Quote:
However, I have a dialog box, and this changed the font of the "OK" button, but not the dialog text font... Any clues? Thanks once again! L. |
Re: Pygtk: how to change the whole app font size
From the gtk.Dialog reference page:
Quote:
myDialog.vbox myDialog.action_area |
Re: Pygtk: how to change the whole app font size
Quote:
self.changePango(dialog)): Code:
def changePango(self, child): Thanks again, L. |
All times are GMT. The time now is 07:59. |
vBulletin® Version 3.8.8