Re: [pygtk] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Greg Bair
On Thu, 2010-08-19 at 08:56 +1200, Tim Evans wrote: > On 2010-08-18 22:01, Greg Bair wrote: > > Hi all, > > > > When setting an attribute for a CellRendererPixbuf like so: > > > > column.add_attribute(render_pixbuf, 'stock-size', gtk.ICON_SIZE_BUTTON) > > > > I got the following error: > > > > Warn

Re: [pygtk] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Tim Evans
On 2010-08-18 22:01, Greg Bair wrote: Hi all, When setting an attribute for a CellRendererPixbuf like so: column.add_attribute(render_pixbuf, 'stock-size', gtk.ICON_SIZE_BUTTON) I got the following error: Warning: unable to set property `stock-size' of type `guint' from value of type `gcharar

Re: [pygtk] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Timo
On 18-08-10 12:01, Greg Bair wrote: Hi all, When setting an attribute for a CellRendererPixbuf like so: column.add_attribute(render_pixbuf, 'stock-size', gtk.ICON_SIZE_BUTTON) I got the following error: Warning: unable to set property `stock-size' of type `guint' from value of type `gchararra

Re: [pygtk] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Timo
On 18-08-10 12:01, Greg Bair wrote: Hi all, When setting an attribute for a CellRendererPixbuf like so: column.add_attribute(render_pixbuf, 'stock-size', gtk.ICON_SIZE_BUTTON) I got the following error: Warning: unable to set property `stock-size' of type `guint' from value of type `gchararra

Re: [pygtk] Segmentation Fault on Assistant.destroy()

2010-08-18 Thread chaouche yacine
It's ok I just changed the behaivour of the script. One should not close the dialog on an apply signal but rather on a close signal that is emited on the last page (page must be of type gtk.ASSISTANT_PAGE_SUMMARY). The last page has a close button that emits a close signal, one can handle that

[pygtk] Segmentation Fault on Assistant.destroy()

2010-08-18 Thread chaouche yacine
Hello list, I want to close my Assistant at the last step, but I get Segmentation Faults all the time. Can someone look at this simplified example ? import gtk class SomePage(gtk.VBox): def __init__(self,assistant): gtk.VBox.__init__(self) self.assistant = assistant d

Re: [pygtk] Best way to collect data from an Assistant page

2010-08-18 Thread chaouche yacine
Here's the solution I figured out, but a self.destroy() on the assistant at the last step gives me a Segmentation Fault. Anybody ? #-*-encoding:utf-8-*- # From #pida # ok, first direction, never use import pygtk # pygtk.require("2.0") import gtk from coriolis.models import Media from pygt

[pygtk] Best way to collect data from an Assistant page

2010-08-18 Thread chaouche yacine
Hello, welcome = FirstPage() form = SecondPage() thankx = LastPage() wizard = Assistant() wizard.add(welcom,form,thanks) When the user is at the SecondPage, which is a form, and then clicks on the next button, I wish to retrieve the forms data. the prepare signal that is triggered will giv

[pygtk] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Greg Bair
Hi all, When setting an attribute for a CellRendererPixbuf like so: column.add_attribute(render_pixbuf, 'stock-size', gtk.ICON_SIZE_BUTTON) I got the following error: Warning: unable to set property `stock-size' of type `guint' from value of type `gchararray' The GTK+ C ref says that these are

Re: [pygtk] Any good (hopefully py)gtk.Assistant tutorial ?

2010-08-18 Thread chaouche yacine
Sorry, didn't search right :). Google has weird criteria to score search results. Used dogpile and found a gem : http://www.learnpygtk.org/pygtktutorial/assistant.html. Anyway, I would appreciate other links if any. Y.Chaouche --- On Wed, 8/18/10, chaouche yacine wrote: > From: chaouche yac

[pygtk] Any good (hopefully py)gtk.Assistant tutorial ?

2010-08-18 Thread chaouche yacine
Hello, I have searched the web for a tutorial on how to use gtk.Assistant, as reading the API isn't the best way to understand how things work... I would appreciate if anybody has an interesting link on this subject to share with us, or a usage example... Thanks for sharing ! Y.Chaouche