[pygtk] setting a filter for gtk.FontSelection
finlay
finlay at moeraki.com
Mon May 5 02:04:55 WST 2008
Le Roux Bodenstein wrote:
> I'm trying to display a font selection widget that only lists monospace
> fonts. I found the documentation for gtk.FontSelection here:
> http://www.pygtk.org/docs/pygtk/class-gtkfontselection.html
>
> And it mentions base and user filters:
>
> "Filters can be used to limit the font selections. There are 2 filters
> in the gtk.FontSelection - a base filter and a user filter. The base
> filter cannot be changed by the user, so this can be used when the
> user must choose from the restricted set of fonts (e.g. for a
> terminal-type application you may want to force the user to select a
> fixed-width font). The user filter can be changed or reset by the
> user, by using the Reset Filter button or changing the options on the
> Filter page of the widget."
>
> ..but I cannot find any documentation or other reference to these
> filters. How do I set them? How do they work? Is this something that's
> not implemented in pygtk, was removed from gtk at some stage, is just
> not documented or am I losing my mind? :)
>
This feature was removed from gtk after 2.2. There should be a note
similar to the note in the description of the FontSelectionDialog
documentation.
John
More information about the pygtk
mailing list