AW: [pygtk] GenericCellRenderer shows text vertically

2004-11-18 Thread Maik Hertha
:> Message: 3 :> Date: Fri, 19 Nov 2004 02:01:18 +0100 :> From: David Gil Oliva <[EMAIL PROTECTED]> :> Subject: [pygtk] GenericCellRenderer shows text vertically :> To: [EMAIL PROTECTED] :> Message-ID: <[EMAIL PROTECTED]> :> Content-Type: text/plain; charset=US-ASCII :> :> Hello! :> :> I have fou

[pygtk] [ANNOUNCE] PyGTK Reference Manual v 2.5.0 available

2004-11-18 Thread John Finlay
Version 2.5.0 of the PyGTK Reference Manual is available at: http://www.pygtk.org/pygtk2reference/index.html and tarballs at: http://www.pygtk.org/dist/pygtk2reference.tgz http://www.pygtk.org/dist/pygtk2reference.tbz2 In addition to many bug fixes from Rafael Villar Burke, Antoon Pardon, Christia

Re: [pygtk] removing remaining rows in a liststore

2004-11-18 Thread John Finlay
Doug Quale wrote: Chris Lambacher <[EMAIL PROTECTED]> writes: if iter does not override the __nonzero__ method from object, the while loop will always evaluate iter as true. The documenation says that listtstore.remove sets iter to the next valid row so the original unless it is the last row in

Re: [pygtk] removing remaining rows in a liststore

2004-11-18 Thread Doug Quale
Chris Lambacher <[EMAIL PROTECTED]> writes: > if iter does not override the __nonzero__ method from object, the > while loop will always evaluate iter as true. The documenation says > that listtstore.remove sets iter to the next valid row so the original > unless it is the last row in which case

[pygtk] AW: pygtk Digest, Vol 21, Issue 25

2004-11-18 Thread Maik Hertha
:> Message: 10 :> Date: Thu, 18 Nov 2004 11:12:48 -0500 :> From: Chris Lambacher <[EMAIL PROTECTED]> :> Subject: [pygtk] Is there an automated way to create :> IconSources/IconSets/IconFactories ? :> To: pygtklist <[EMAIL PROTECTED]> :> Message-ID: <[EMAIL PROTECTED]> :> Content-Type: text/pla

Re: [pygtk] removing remaining rows in a liststore

2004-11-18 Thread Chris Lambacher
if iter does not override the __nonzero__ method from object, the while loop will always evaluate iter as true. The documenation says that listtstore.remove sets iter to the next valid row so the original unless it is the last row in which case the iter is invalidated. so the while loop needs to

Re: [pygtk] removing remaining rows in a liststore

2004-11-18 Thread Doug Quale
Stuart Hughes <[EMAIL PROTECTED]> writes: > I'm reading data from a file into a gtk.ListStore. Sometimes the > number of rows in the file can reduce, so I want to be able to refresh > the valid rows, and delete the remaining invalid rows so they don't > show up. > > After refreshing the valid ro

Re: [pygtk] How to Set a Window Icon to a Stock Image

2004-11-18 Thread Doug Quale
Nigel Tao <[EMAIL PROTECTED]> writes: > I have a GtkDialog for which I want to: > dialog.set_icon(gtk.image_new_from_stock(gtk.STOCK_FIND, > gtk.ICON_SIZE_MENU).get_pixbuf()) > > but I get the following error: > ValueError: image should be a GdkPixbuf or empty > > Indeed, the PyGTK docs ( http:/

Re: [pygtk] Change font of a CellRendererText

2004-11-18 Thread Steven Howe
For more examples, at least under the Fedora Core release, check out:     /usr/share/doc/pygtk2-2.4.0/examples/pygtk-demo A script there shows off lots of pygtk functionality, including font and scale manipulation. Steven. Take care On Thu, 2004-11-18 at 12:45 -0200, Christian Robottom

[pygtk] PNG images in PyGTK 0.6.9

2004-11-18 Thread Steve McClure
I'm loading PNG files for use in several different widgets, GtkCList and GtkCTree columns, a few GtkButtons and GtkPixmaps. I'm using gdkpixbuf.new_from_file(), render_pixmap_and_mask() and scale_simple(). However, some of my PNGs have transparency and it seems the GtkPixmap only supports an alpha

[pygtk] libglade and stock icons

2004-11-18 Thread Chris Lambacher
Is there a way to make glade use an stock icon that I have added via IconFactory? It seems to only recognise icons in its drop down as stock icons, anything else it wants to make be an icon file. -Chris -- Christopher Lambacher [EMAIL PROTECTED] ___ py

Re: [pygtk] removing remaining rows in a liststore

2004-11-18 Thread Gustavo J. A. M. Carneiro
Qui, 2004-11-18 às 16:06 +, Stuart Hughes escreveu: > Hi everyone, > > I'm reading data from a file into a gtk.ListStore. Sometimes the number > of rows in the file can reduce, so I want to be able to refresh the > valid rows, and delete the remaining invalid rows so they don't show up. >

Re: [pygtk] removing remaining rows in a liststore

2004-11-18 Thread Chris Lambacher
how about while self.lstore.iter_is_valid(iter): self.lstore.remove(iter) -Chris On Thu, 18 Nov 2004 16:06:26 +, Stuart Hughes <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm reading data from a file into a gtk.ListStore. Sometimes the number > of rows in the file can reduce, so

[pygtk] Is there an automated way to create IconSources/IconSets/IconFactories ?

2004-11-18 Thread Chris Lambacher
I am attempting to use UIManager to generate a ToolBar and a MenuBar. I want to add icons that are not stock icons, but UIManger requires that you use stock icons. That means that an IconFactory needs to be created for the icons I wish to use. IconSets need to be added to the IconFactory for each

[pygtk] removing remaining rows in a liststore

2004-11-18 Thread Stuart Hughes
Hi everyone, I'm reading data from a file into a gtk.ListStore. Sometimes the number of rows in the file can reduce, so I want to be able to refresh the valid rows, and delete the remaining invalid rows so they don't show up. After refreshing the valid rows (the data runs out), I have an iter t

Re: [pygtk] Change font of a CellRendererText

2004-11-18 Thread Guilherme Salgado
On Thu, 2004-11-18 at 12:45 -0200, Christian Robottom Reis wrote: > On Wed, Nov 17, 2004 at 07:56:14PM -0800, John Finlay wrote: > > David Gil Oliva wrote: > > > > >Can anyone tell me how can I change the font description of a > > >CellRendererText to, for instance, Courier 12? It's a silly questi

Re: [pygtk] Change font of a CellRendererText

2004-11-18 Thread Christian Robottom Reis
On Wed, Nov 17, 2004 at 07:56:14PM -0800, John Finlay wrote: > David Gil Oliva wrote: > > >Can anyone tell me how can I change the font description of a > >CellRendererText to, for instance, Courier 12? It's a silly question, > >but I have read the docs and I don't get it. -> FAQ 13.40 http:

[pygtk] Re: FAQ 13.7 should be updated

2004-11-18 Thread Chris Lambacher
Following on from that, we can also update 13.25: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.025.htp selection = treeview.get_selection() model, selected = selection.get_selected_rows() iters = [selection.get_iter(path) for path in selected] for iter in iters: model.remove

[pygtk] Re: FAQ 13.7 should be updated

2004-11-18 Thread Chris Lambacher
Oops. I always forget about he model: selection = treeview.get_selection() model, selected = selection.get_selected_rows() On Thu, 18 Nov 2004 09:10:45 -0500, Chris Lambacher <[EMAIL PROTECTED]> wrote: > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.007.htp > > gtk_tree_selecti

[pygtk] FAQ 13.7 should be updated

2004-11-18 Thread Chris Lambacher
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.007.htp gtk_tree_selection_get_selected_rows is wrapped in at least v2.4 of PyGTK so the sample code becomes: selection = treeview.get_selection() selected = selection.get_selected_rows() -Chris -- Christopher Lambacher [EMAIL PROTE

Re: [pygtk] gnome.vfs volume_monitor bindings?

2004-11-18 Thread Gustavo J. A. M. Carneiro
Qui, 2004-11-18 às 11:44 +, Nigel Tao escreveu: > Are the following methods in PyGTK? > > gnome_vfs_get_volume_monitor() > gnome_vfs_volume_monitor_get_connected_drives(volume_monitor) > gnome_vfs_volume_monitor_get_mounted_volumes(volume_monitor) These belong in gnome-python, not pygtk. T

[pygtk] gnome.vfs volume_monitor bindings?

2004-11-18 Thread Nigel Tao
Are the following methods in PyGTK? gnome_vfs_get_volume_monitor() gnome_vfs_volume_monitor_get_connected_drives(volume_monitor) gnome_vfs_volume_monitor_get_mounted_volumes(volume_monitor) The reference documentation on www.pygtk.org only seems to cover GTK, GDK and Pango (but not GNOME APIs).

[pygtk] XPN 0.3.5 released

2004-11-18 Thread nemesis2001
XPN is an on-line newsreader with unicode support. It's written in Python using GTK+2 toolkit and works wherever Python and GTK+2 work. It also has features like scoring, random taglines, search ... You can find it on: http://xpn.altervista.org/index-en.html http://sf.net/projects/xpn Changes in