Re: [pygtk] Listtore

2006-02-20 Thread Don Allingham
Try: gtk.ListStore(*[str]*4) Don Arie Timmerman wrote: 2006/2/20, Johan Dahlin <[EMAIL PROTECTED] >: [..] gtk.ListStore([str] * x) -- Johan Dahlin <[EMAIL PROTECTED] > Async Open Source It doesn't work actually: >

Re: [pygtk] Howto set the length of GenericTreeModel

2006-01-25 Thread Don Allingham
; GtkTreeIter *iter); > > In conjunction with gtk.CellRendererText.set_fixed_height_from_font > and set_fixed_width (like you mentioned), GtkTreeView ought to be able > to call iter_n_children once and then just iter over the rows that are > vis

Re: [pygtk] VBox in ListStore

2006-01-18 Thread Don Allingham
Cells in a TreeView need to be of a gtk.CellRenderer type, not a generic widget. If you want to put a progress bar in a TreeView, you should use the gtk.CellRendererProgress. http://pygtk.org/pygtk2reference/class-gtkcellrendererprogress.html Don Arie Timmerman wrote: John Ehresman wrote:

Re: [pygtk] UIManager and MenuToolButton

2006-01-10 Thread Don Allingham
From what I can tell, UIManager has no direct support for MenuToolButton, which was a big disappointment to me. I have been able to work around this with a bit of a hack. This hack works well when your button position is stationary, but fails if your buttons are more dynamic (if you add and re

[pygtk] expander packing issue

2005-12-24 Thread Don Allingham
to expand the expander and then click to collapse it, the window stays expanded. Do I have to do some more packing magic (how?) or is this bug in pygtk? Thanks in advance, Don Allingham and Alex Roitman -- Don Allingham http://gramps-project.org signature.asc Description:

[pygtk] UIManager and MenuToolButton

2005-08-11 Thread Don Allingham
Is there a way to use a MenuToolButton with UIManager? I would like to do something like: Unfortunately, this does not seem to work. Has anyone succeeded in using a MenuToolButton with UIManager? Don -- Don Allingham GRAMPS - Open Source Genealogy http://www.gramps

Re: [pygtk] Dynamically menus with UIManager

2005-08-10 Thread Don Allingham
Thanks. This seems to work well. Don Toshio Kuratomi wrote: On Tue, 2005-08-09 at 22:29 -0600, Don Allingham wrote: I've started using UIManager to handle my toolbar and menubar. The action groups and ui merging have proven to be very powerful. However, there are a few cases where I

[pygtk] Dynamically menus with UIManager

2005-08-09 Thread Don Allingham
as on how I would dynamically add menu items to a menu that is generated by UIManager? Thanks. Don -- Don Allingham GRAMPS - Open Source Genealogy http://www.gramps-project.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/ma

Re: [pygtk] An overdue Thank Your note

2005-01-28 Thread Don Allingham
As a member of the GRAMPS development team, I fully agree with Art's comments. PyGTK and gnome-python have made our project possible, and the FAQ and Tutorial are absolutely invaluable. Thanks to the entire PyGTK team. Don Allingham Art Haas wrote: Hi. I've wanted to write in and publ

[pygtk] Drag and drop with a GenericTreeModel

2004-11-29 Thread Don Allingham
ation. gtk.main() I've tried deriving the class from TreeDragDest in addition to GenericTreeModel, and I've tried adding the drag_data_received function to the model, but neither has given me any success. Is there an example of the proper way to do this?

Re: [pygtk] Need help trying to be a good GNOME application...

2004-11-17 Thread Don Allingham
Gustavo, Thanks for the information. Any recommendations on what to do about GtkUIManager? Don Gustavo J. A. M. Carneiro wrote: Qua, 2004-11-17 às 09:33 -0700, Don Allingham escreveu: Due to the demands of working for a startup company, I've been away from this list for quite a while. I&#x

[pygtk] Need help trying to be a good GNOME application...

2004-11-17 Thread Don Allingham
Due to the demands of working for a startup company, I've been away from this list for quite a while. I've been trying to get caught up on the work needed for the GRAMPS project, and I could use some help on being a good GNOME application using pygtk/gnome-python. Because GRAMPS is a genealogy

Re: [pygtk] TreeView Widget tutorial

2004-05-28 Thread Don Allingham
John, The tutorial is fantastic. Great job. I'd recommend adding a section and an example on how to use the GenericTreeModel. I've found the TreeStore and ListStore to not be very practical for large lists. The GenericTreeModel is a little intimidating the first time you use it. The only exampl

Re: [pygtk] How to make Outlook style toolbar?

2004-05-28 Thread Don Allingham
On Fri, 2004-05-28 at 09:47, John (J5) Palmieri wrote: > On Fri, 2004-05-28 at 06:12, Xavier Ordoquy wrote: > > On Fri, 2004-05-28 at 11:59, Jonathon McKitrick wrote: > > > Does anyone know how to make an Outlook style toolbar? I think Mozilla has > > > one as well. It's the big icons stacked ver

Re: [pygtk] Missing top level nodes with TreeModelFilter

2004-04-26 Thread Don Allingham
John, Thanks for the help. Don On Mon, 2004-04-26 at 02:47, John Finlay wrote: > Don Allingham wrote: > > > The problem is that filter_new() requires a parameter, and will not take > > > >None. > > > >self.sort_model = gtk.TreeModelSort(self.per

Re: [pygtk] Missing top level nodes with TreeModelFilter

2004-04-25 Thread Don Allingham
On Sun, 2004-04-25 at 20:17, John Finlay wrote: > >If I modify the treemodel.py file from: > > > > model = MyTreeModel() > > > >to: > > > > model = MyTreeModel().filter_new(0) > > > This creates a model starting from the virtual root of zero i.e. the > tree only contains the children of node 0.

[pygtk] Missing top level nodes with TreeModelFilter

2004-04-25 Thread Don Allingham
I've been experimenting with the TreeModelFilter class, and I've noticed something really odd. Hopefully, its due to my misunderstanding of the class. When I modify a model to create a filtered model, I seem to lose the top level nodes, and what appears as the top level nodes only have the childre

[pygtk] TreeModelFilter example?

2004-04-23 Thread Don Allingham
Is there an example of how to use the TreeModelFilter? It does not seem to work in the same manner as TreeModelSort. model = gtk.TreeModelFilter(mymodel) will fail with a "NotImplementedError: gtk.TreeModelFilter is an abstract widget" However, I can't seem to use it like a GenericTreeModel

[pygtk] RH 8 RPMs for pygtk2/gnome-python 2.X

2004-04-05 Thread Don Allingham
-- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Non-homogenous treeview

2004-03-15 Thread Don Allingham
gt; Thanks, > Dave > > > ___ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ > -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___

[pygtk] Re: pygtk Digest, Vol 13, Issue 18

2004-03-11 Thread Don Allingham
eeIter. It seems the preferred method is to you python objects. This seems to work with everything except the TreeSortModel. Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___ pygtk mailing list [EMA

[pygtk] Selection issues with TreeModelSort

2004-03-11 Thread Don Allingham
returns another GtkTreeIter. Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: python bindings for gtk 2.4 and gnome 2.6

2004-02-19 Thread Don Allingham
re gonna to need > things for your application, listing them here would be cool). > After that we'll have a clearer view on the things to do. > > Xavier Ordoquy. > > On Tue, 2004-02-17 at 18:08, Don Allingham wrote: > > I would be interested in helping out where I could. My

[pygtk] GRAMPS project bounty program

2004-02-09 Thread Don Allingham
interested in the task, please contact me. Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.

Re: [pygtk] GTK 2.4/GNOME 2.6 support

2004-01-29 Thread Don Allingham
ogramming, but my project could definitely use some of the new GTK features. I might have to pull time away from my project to help get some of the new features in pygtk. The new file dialog, the TreeView enhancements, and the text autocompletion would make a big difference on m

[pygtk] GTK 2.4/GNOME 2.6 support

2004-01-27 Thread Don Allingham
Are there plans to have GNOME 2.6/GTK 2.4 support in time for the GNOME 2.6 release? It would be nice to have access to the new file selector and the treeview enhancements. Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Gen

[pygtk] Plea for a patch to be applied

2004-01-07 Thread Don Allingham
et to NULL. The attached patch will catch and handle the NULL pointer. Please apply the patch (or a better one if one can be found). Until this problem is fixed, the TreeModelSort is not usable. Thanks. Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy Index: pygtk/gtk/

Re: [pygtk] Unapplied patches

2003-12-17 Thread Don Allingham
be great! Thanks! Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Unapplied patches

2003-12-17 Thread Don Allingham
ricTreeModel taking under two seconds). I guess I'd like to add my voice to Alex's in asking if there is a way we can get some of these patches into a release (2.0.1?). Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy

[pygtk] TreeModelSort patch

2003-10-25 Thread Don Allingham
27;'returns the number of children of this node''' if node == None: return self.TREE_DEPTH if len(node) < self.TREE_DEPTH: return self.TREE_SIBLINGS else: return 0 -- Don Allingham <[EMAIL PROTECTED]> GRAMPS Op

Re: [pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-21 Thread Don Allingham
Christian Robottom Reis wrote: On Mon, Oct 20, 2003 at 01:50:39PM -0600, Don Allingham wrote: I may be misunderstanding this. I took the treemodel.py example from the pygtk distribution and changed it from: model = MyTreeModel() tree_view = gtk.TreeView(model) To: model = MyTreeModel

Re: [pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-20 Thread Don Allingham
the test case now fails to work. Don Allingham ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Creating a sortable model derived from GenericTreeModel

2003-10-20 Thread Don Allingham
. Does anyone know what I am doing wrong? Thanks, Don Allingham ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Temporarily disabling a TreeView from sorting?

2003-10-15 Thread Don Allingham
sorting after the data has been entered? -- Don Allingham <[EMAIL PROTECTED]> GRAMPS OpenSource Genealogy signature.asc Description: This is a digitally signed message part ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/li

[pygtk] getting mime information

2003-09-04 Thread Don Allingham
other way of doing the equivalent? -- Don Allingham <[EMAIL PROTECTED]> GRAMPS OpenSource Genealogy signature.asc Description: This is a digitally signed message part ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo

[pygtk] example - fetching icon from gnome theme

2003-08-22 Thread Don Allingham
gnome/file_views/icon_theme") print nautilus_icon(theme,"image/jpeg") print nautilus_icon(theme,"x-directory/") -- Don Allingham <[EMAIL PROTECTED]> GRAMPS OpenSource Genealogy signature.asc Description: This is a digitally signed message part

[pygtk] Finding the default application associated with a mime type

2003-08-16 Thread Don Allingham
't seem to provide access to it. Currently, I'm using swig to wrap this function, but this is less than an ideal situation. Is there an easy way to get this information? -- Don Allingham <[EMAIL PROTECTED]> GRAMPS OpenSource Genealogy

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread Don Allingham
kage, and rebuilt the gnome-python package so that it includes the uimodule.so library. Since the gtk interface is part of the pygtk2 package, I also rebuilt that package as well. Is there something else I could be missing? Don -- Don Allingham <[EMAIL PROTECTED]> GRAMPS OpenS

Re: [pygtk] segfault in gtk.glade.XML

2003-07-24 Thread Don Allingham
small python script reading in a glade 2 file. My guess is that something strange happened in the build process. Don On Thu, 2003-07-24 at 20:58, Christian Reis wrote: > On Thu, Jul 24, 2003 at 08:51:42PM -0600, Don Allingham wrote: > > I've been attempting to port pygtk-1.99.

[pygtk] segfault in gtk.glade.XML

2003-07-24 Thread Don Allingham
ibglade-2.0.so.0 #10 0x402af61a in _wrap_glade_xml_new (self=0x3, args=0x8545cbc, kwargs=0x0) at libglade.c:38 -- Don Allingham <[EMAIL PROTECTED]> GRAMPS OpenSource Genealogy ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailm

[pygtk] pygtk broken under SuSE 8.2?

2003-07-23 Thread Don Allingham
Has anyone else had problems with the pygtk version shipped with SuSE 8.2 (1.99.14)? The following fails: import pygtk pygtk.require('2.0') import gnome.ui Looking at the site-packages/gtk-2.0/gnome directory, the uimodule.so file is missing. -- Don Allingham <[EMAIL PROTE

[pygtk] unable to find GNOME_FILE_DOMAIN_APP_HELP domain using gnome.help

2003-03-27 Thread Don Allingham
Is there a good example on how to use gnome.help? I get the following messages when I try to call gnome.help: (program:18256): Gnome-WARNING **: gnome-program.c:986: Directory properties not set correctly. Cannot locate application specific files. gobject.GError: Unable to find the GNOME_FILE_DO

[pygtk] GnomeFileEntry and non-ascii characters

2003-03-27 Thread Don Allingham
I'm using a GnomeFileEntry in a glade built interface. Any time I select a file name with a non-ascii character in it (such as 'ä'), I get all kinds of errors, and the full string is not displayed. Some of the errors I get are: Gtk-CRITICAL **: file gtktextbuffer.c: line 476 (gtk_text_buffer_emit_

Re: [pygtk] gnomeprint examples?

2003-03-19 Thread Don Allingham
from CVS. Thanks. Don On Wed, 2003-03-19 at 09:54, Gustavo J. A. M. Carneiro wrote: > On Ter, 2003-03-18 at 23:02, Don Allingham wrote: > > Is there a good example on how to use the gnomeprint module? > Probably not very good, but there is one, in the gnome-python > distribution:

[pygtk] gnomeprint examples?

2003-03-18 Thread Don Allingham
Is there a good example on how to use the gnomeprint module? -- Don Allingham <[EMAIL PROTECTED]> GRAMPS - Open Source Genealogy ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

[pygtk] Using codegen to create wrappers

2003-02-17 Thread Don Allingham
Are there any instructions on how to use codegen to wrap a library? I'm interested in creating a wrapper for the gtkspell library. Thanks. Don --- Don Allingham ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/

[pygtk] Using None as a pixmap mask in pygtk2

2003-01-04 Thread Don Allingham
I've been working with drag and drop with the TreeView in pygtk2. I want to allow the user to use drag and drop between TreeViews and to allow them to reorder elements within the TreeView. The TreeView task of create_row_drag_icon returns a pixmap, but the drag_source_set_icon requires a pixmap a

[pygtk] RPMs for gnome-python2?

2002-12-30 Thread Don Allingham
aries, but included pygtk and gnome-python for gnome 1.4. Few of the users are able to or would be willing to compile everything from source code. Thanks in advance. Don -- Don Allingham GRAMPS - Open Source Genealogy ___ pygtk mailing list [

RE: [pygtk] fatal crash with gnome canvas

2002-11-27 Thread Don Allingham
#99689). > > You can probably work around the bug by first deleting all references to canvas >items, then do a garbage collect, and at last delete the canvas... > > Regards, > > Arjan > > > -Original Message- > > From: "[EMAIL PROTECTED]"

[pygtk] fatal crash with gnome canvas

2002-11-26 Thread Don Allingham
_dealloc () #13 0x080b62ff in instance_dealloc () #14 0x080ce3ab in PyDict_Clear () #15 0x080d01bf in dict_tp_clear () #16 0x0809c95c in delete_garbage () #17 0x0809cae5 in collect () #18 0x0809ccc7 in collect_generations () -- Don Allingham [EMAIL PROTECTED] http://gramps.

[pygtk] Forcing a sort of a TreeView?

2002-11-21 Thread Don Allingham
Is there a way to force a TreeView to sort? I've tried using the clicked() method on a column, but that always changes the direction. The GtkCList had a nice .sort() method. Is there anything comparable in GNOME 2's TreeView? Thanks, Don -- Don Allingham [EMAIL PROTE

[pygtk] Why is TreeView/ListStore so much slower that CList?

2002-11-16 Thread Don Allingham
y program) is highly dependent on columned lists. Thanks, Don -- Don Allingham [EMAIL PROTECTED] http://gramps.sourceforge.net ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Dynamically creating columns in a ListStore

2002-11-04 Thread Don Allingham
TRING, gobject.TYPE_STRING) elif cols == 4: And so on until I hit the maximum columns I think I will encounter. What I'd like to do is something like: store = gtk.ListStore([gobject.TYPE_STRING]*cols) Is there any way to do something like this? Thanks, Don -- Don Allingham [EMAIL PROTE

[pygtk] select_region and set_position deprecation warnings

2002-10-05 Thread Don Allingham
ioning the cursor? Don Allingham http://gramps.sourceforge.net ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Problems with IconList under pygtk2

2002-09-28 Thread Don Allingham
bject-WARNING **: invalid cast from (NULL) pointer to `GObject' (gramps:1353): GLib-GObject-CRITICAL **: file gobject.c: line 1335 (g_object_set_qdata): assertion `G_IS_OBJECT (object)' failed Thanks. Don Allingham http://gramps.sourceforge.net ___

[pygtk] Problems with IconList under pygtk2

2002-09-25 Thread Don Allingham
bject-WARNING **: invalid cast from (NULL) pointer to `GObject' (gramps:1353): GLib-GObject-CRITICAL **: file gobject.c: line 1335 (g_object_set_qdata): assertion `G_IS_OBJECT (object)' failed Thanks. Don Allingham http://gramps.sourceforge.net ___

[pygtk] Determining string width in GNOME 2?

2002-09-08 Thread Don Allingham
rect value. Is there a new way of doing this? My code is trying to determine the length of strings before they are displayed on a canvas so I can tell how many will fit. Don Allingham -- Don Allingham [EMAIL PROTECTED] http://gramps.sourceforge.net ___

Re: [pygtk] Relocation error under Mandrake 8.2

2002-07-27 Thread Don Allingham
lso, use of the pixbuf module will make it a little easier for you to > upgrade to 2.0. > > James. > I would love to have an alternative to GdkImlib. Its been the biggest source of problems for me. Is there an example somewhere on how to use the wrapper, especially with libglad

Re: [pygtk] Relocation error under Mandrake 8.2

2002-07-27 Thread Don Allingham
What I've got working now is a shell script wrapper around the program that tries to detect the needed libraries and force them to load by using the LD_PRELOAD environment variable. Don On Fri, 2002-07-26 at 21:27, Christian Reis wrote: > On Fri, Jul 26, 2002 at 05:25:45PM -0600, D

[pygtk] python is segfaulting when closing a window

2002-01-10 Thread Don Allingham
gtk_color_selection_dialog nor a gnome_entry. And all that is happening is that the window is being closed after some values are stored. No new widgets are created. Does anyone have any ideas? -- Don Allingham [EMAIL PROTECTED] http://gramps.sourceforge.net

Re: [pygtk] Handling events in a timeout thread

2001-12-27 Thread Don Allingham
ng gtk._disable_threading() before > you call the mainloop for the first time. > > Cheers, > > Matt > -- Don Allingham [EMAIL PROTECTED] http://gramps.sourceforge.net ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] Handling events in a timeout thread

2001-12-26 Thread Don Allingham
the entire application freezes. Any ideas on how do fix this? -- Don Allingham [EMAIL PROTECTED] http://gramps.sourceforge.net ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] selection and drag/drop from a GtkCList

2001-12-09 Thread Don Allingham
odd. Is there a way I can get the row to be selected before the drag begins? -- Don Allingham [EMAIL PROTECTED] http://gramps.sourceforge.net ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] XParseColor undefined under Mandrake 8.1

2001-11-23 Thread Don Allingham
while loading shared libraries: /usr/lib/libimlib-xpm.so: undefined symbol: XParseColor -- Don Allingham [EMAIL PROTECTED] GPG/PGP Public Key at http://members.home.net/donaldallingham/dallingham.key ___ pygtk mailing list [EMAIL PROTECTED]

[pygtk] Getting icon images associated with a mime type?

2001-10-10 Thread Don Allingham
s's icons. I then appear to have to search for the appropriate path to get the icon. What is the proper way to do this? I would like to display the icon with which the user is familiar. -- Don Allingham [EMAIL PROTECTED] GPG/PGP Public Key at

[pygtk] gnome.mime.description causing segfaults

2001-10-10 Thread Don Allingham
get around this? Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 2731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import gnome.mime >>> print gnome.mime.description('text/script') Segmentation fault (

[pygtk] Minimal size toolbar buttons?

2001-09-17 Thread Don Allingham
each button minimally, and not to stretch each button? -- Don Allingham [EMAIL PROTECTED] GPG/PGP Public Key at http://members.home.net/donaldallingham/dallingham.key ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo

[pygtk] Adding a notebook page cause python to crash

2001-06-03 Thread Don Allingham
I've recently encountered an odd problem. My interface is build with glade, and I am using PyGTK/PyGnome under RH7.1 (Ximian Gnome 1.4). I have a GtkNotebook with 3 pages. I recently attempted to add a 4th page. Everything is fine, until the program exits, at which time I get the following