gtk.FontSelection pb with set_font_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi !

I am trying to use gtk.FontSelection. I can read the choice from the dialog box all right with get_font_name,
but set_font_name just does not set anything and return false. I am not sure if it is a pygtk or gtk bug.
Any idea would be appreciated to fix it:

Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> my_font=gtk.FontSelection()
>>> my_font.get_font_name()
'Sans 10'
>>> my_font.set_font_name('Sans 12')
0
>>> my_font.get_font_name()
'Sans 10'


I am using this on RedHaT 9.0 with 
gtk2-2.2.1-4
pygtk2-1.99.14-4
python-2.2.2-26



Thanks

Jena-Baptiste


-- 
-----------------------------
Jean-Baptiste.Cazier@decode.is

Department of Statistics
deCODE genetics     Sturlugata,8
570 2993          101 Reykjavík



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux