gtk.FontSelection pb with set_font_name
- From: Jean-Baptiste Cazier <Jean-Baptiste cazier decode is>
- To: gtk-list gnome org
- Subject: gtk.FontSelection pb with set_font_name
- Date: Thu, 31 Jul 2003 10:08:21 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]