Re: [pygtk] Best pattern for keyboard accelerators in dialog

2007-01-26 Thread Richard Taylor
On Friday 26 January 2007 09:58, Thomas Guettler wrote: > Am Freitag, 26. Januar 2007 09:49 schrieb Richard Taylor: > > Hi > > > > I have a Window that has a number of widgets placed in it, including a > > TreeView, a Frame (containing more widgets), buttons etc. >

[pygtk] Best pattern for keyboard accelerators in dialog

2007-01-26 Thread Richard Taylor
Hi I have a Window that has a number of widgets placed in it, including a TreeView, a Frame (containing more widgets), buttons etc. The Frame contains a table with Labels, CheckButton and Edit widgets. I would like to provide keyboard accelerators that move the focus to the appropriate Widget

Re: [pygtk] Liststore model

2007-01-13 Thread Richard Taylor
Another option is to wrap the return in a class instance an put that in the ListStore. store = gtk.ListStore(object) Then write a gtk.TreeView that takes the cur.description and build the correct columns. You can use TreeViewColumn.set_cell_data_func to set an method that gets called to fill

Re: [pygtk] PyGTK .app bundle for MacOS X?

2007-01-08 Thread Richard Taylor
Hi Tiziano I have installed these packages and managed to get gramps (www.gramps-project.org) to run. Thanks for making them available. I have a couple of questions (I don't know if this is a packaging issue or a pygtk/gtk issue): - cairo does not appear to work the import of cairo succeeds bu

[pygtk] Help with print preview

2006-12-30 Thread Richard Taylor
Hi I am a little confused about how the print preview callback of PrintOperation is meant to work. The docs say: """ The "preview" signal is emitted when a preview is requested from the native dialog. If you handle this you must set the cairo context on the printing context. If you don't ove

[pygtk] looking for example of using gtk.PrintOperation etc.

2006-12-27 Thread Richard Taylor
Hi I am looking at implementing a print feature using gtk.PrintContext, gtk.PrintOperation etc. I was hoping that I might find some apps that had already done this so that I could learn from them. Does anyone know of any pygtk apps that make use of these classes? Thanks Richard __

Re: [pygtk] Signals, once again

2006-02-15 Thread Richard Taylor
Jarek Attached is your code changed so that it works. A diff between yours and mine should show you were you are going wrong. Richard On Wednesday 15 Feb 2006 10:02, Jarek Zgoda wrote: > Can anyone enlighten me, please, how do I emit signal in an instance of one > class and receive it in an ins

Re: [pygtk] Using changed event

2006-01-30 Thread Richard Taylor
On Monday 30 Jan 2006 15:24, Nicholas Wieland wrote: > Hi *, > I need to trap all non-digits in a gtk.Entry, to prevent hte user > from inserting letters and symbols at all. > I'm trying to use the 'changed' event, but it doesn't seem to work: > >def foo (self, widget): > if re.match ('[A-

Re: [pygtk] Howto set the length of GenericTreeModel

2006-01-25 Thread Richard Taylor
) just to show 10 rows on the screen. Ho hum. Regards Richard On Tuesday 24 Jan 2006 20:19, Richard Taylor wrote: > Hi > > I am trying to build a subclass of GenericTreeModel for use with a large > Berkeley DB database. I have it just about working but one thing I noticed > i

[pygtk] Howto set the length of GenericTreeModel

2006-01-24 Thread Richard Taylor
Hi I am trying to build a subclass of GenericTreeModel for use with a large Berkeley DB database. I have it just about working but one thing I noticed is that TreeView appears to work out the length of the GenericTreeModel by repeatably calling GenericTreeModel.on_iter_next(iter). For a large t

[pygtk] Pure python GtkTreeModelFilter

2005-06-24 Thread Richard Taylor
Hi I am about to start on a pure python implementation of GtkTreeModelFilter and before I start I thought it would be a good idea to check if someone else has already done it. Why would I do such a thing? Well, we have to subclass gtk.GenericTreeModel for the list models in our app because the

Re: [pygtk] Subclassing GtkCellRenderer

2005-05-04 Thread Richard Taylor
On Wednesday 04 May 2005 11:33, Nikos Kouremenos wrote: > On 5/4/05, Richard Taylor <[EMAIL PROTECTED]> wrote: > > Hi > > > > I would like to put a Button in a ListView Cell. Am I correct that I need > > to subclass GtkCellRenderer to do this? > > > >

[pygtk] Subclassing GtkCellRenderer

2005-05-04 Thread Richard Taylor
Hi I would like to put a Button in a ListView Cell. Am I correct that I need to subclass GtkCellRenderer to do this? If I do need to subclass GtkCellRenderer are there any pygtk examples of how to do it? I have looked at the C example in http://scentric.net/tutorial/treeview-tutorial.html but