Re: [pygtk] gnome-vfs

2005-07-14 Thread John Gill
Are you sure that you haven't got a suitable python-gnome. eg on my system: > apt-cache showpkg python2.3-gnome2 Package: python2.3-gnome2 Versions: 2.10.0-2(/var/lib/apt/lists/dub-cluster01_mirror_debian_dists_unstable_main_binary-i386_Packages) Ogz wrote: Re: [pygtk] gnome-vfs

Re: [pygtk] Pure python GtkTreeModelFilter

2005-06-24 Thread John Gill
Hi, I've been (slowly) trying to create something that should support just the sort of thing you are trying to do. I've found using GtkTreeModelFilter and GtkTreeModelSort with large data sets runs into serious performance issues.   With very large datasets I also ran into trouble with plain

Re: [pygtk] Gtk.Notebook problem in PyGTK 2.6

2005-05-31 Thread John Gill
I think this might be a matplotlib issue. I've been having some refresh issues with matplotlib since switching to 2.6.  In particular I've noticed that if I put my mouse over the toolbar and let a tooltip pop up the canvas does not get repainted. Up to now I'd been assuming this problem was i

Re: [pygtk] Sharing a notebook and a statusbar in two gtk windows

2005-05-27 Thread John Gill
I don't think you can have a widget have two parents simultaneously. If you don't need both versions of the widgets visible simultaneously then what you can do is reparent widgets from one frame to another. In this way, you could allow the user to toggle between the views and just reparent th

[pygtk] Easygrid.py now out in the wild

2005-05-26 Thread John Gill
As promised earlier I've put out my latest easygrid code. You can find it here: http://www.earthenware-services.org/software/EarthenwareLibrary/ Anyone working with pytables might find pigtables.py of interest -- this is a quick and dirty hack using easygrid to view HDF5 files from pytables.

Re: [pygtk] Adding large amounts of data to a ListStore

2005-05-26 Thread John Gill
Another trick that usually helps is to detach the model from the view whilst loading the data (this might be roughly equivalent to freeze). eg do: view.set_model(None) ... load data into the model view.set_model(model) I think this is covered in the PyGTK FAQ. I'm hoping to get a release

Re: [pygtk] Wrapping Gtksheet. Gtksheet - Gtktreeview

2005-05-23 Thread John Gill
The previous version of the code I posted was pretty badly broken -- new version attached. I've fixed up some of the worst bugs in the last version of pigtables/easygrid -- attached code should now work well enough to demonstrate the concept at least. Usage: python pigtables -f filename.hd5

Re: [pygtk] Wrapping Gtksheet. Gtksheet - Gtktreeview

2005-05-23 Thread John Gill
It sounds like you are trying to create something like the attached, simple pytable viewer. This is very much a work in progress (see comments at top of easygrid for some stuff that needs doing) -- there are quite a few bugs to squash here, but I'm able to browse tables with 500K rows fairly c

Re: [pygtk] Wrapping Gtksheet

2005-05-19 Thread John Gill
+1 for people who badly need a good GtkGrid. If you check the list you'll see I'm constantly whining about performance of the TreeView when you have really large datasets to browse. I'm wondering if the GtkGrid performs better (I see it has large amounts of code derived from the Treeview + wh

Re: [pygtk] TreeView Sort Performance

2005-05-04 Thread John Gill
If you check back the archives you will see I have reported quite a few issues with large datasets and treeviews.   I have been promising a pygtk wrapper around the treeview that provides better performance + I am nearly there.   I've attached my code, there is quite a bit more I intend to do t

Re: [pygtk] Pygtk simple graphics lib

2005-04-23 Thread John Gill
matplotlib -- http://matplotlib.sourceforge.net/ is the by far the best 2-D plotting package I've encountered in python. John Jim Leven wrote: [pygtk] Pygtk simple graphics lib Friends I have been using a simple module employing Tkinker and Canvas for plotting graphs

Re: [pygtk] ANNOUNCE: Gazpacho 0.5.3

2005-04-11 Thread John Gill
It is good to see gazpacho, writing in pygtk makes a lot of sense :) I just took a look at the gazpacho site.   Templates will be nice to have, although I think it is better to build components and re-use those across your applications, rather than have templates.   The problem with templates

Re: [pygtk] Treeview speed is a algorithm or hardware problem?

2005-04-06 Thread John Gill
Based on the size of your grid (2x10) it looks like it is the cell renderer code that is causing problems for you.   My comments about poor performance of treeviews don't apply in your case, because your treeview is quite small compared with the ones I'm running into problems with. You probabl

Re: [pygtk] Treeview speed is a algorithm or hardware problem?

2005-04-05 Thread John Gill
Hi, I have also been experiencing performance issues with TreeView (see posting by me on 26 Feb re: TreeModelFilter performance). Generally, I don't think the TreeView has been tested much with models containing more than a few thousand rows, and once you get above this you can hit some ugly

[pygtk] TreeModelFilter performance with large models

2005-02-26 Thread John Gill
I've been experiencing poor performance with a TreeModelFilter as the number of rows in my model grows. Attached is a short Pygtk script which demonstrates the problem.  The app loads 1 rows into a ListStore.   Buttons on the bottom of the app allow you to filter to show either: All en

Re: [pygtk] Verifying Entry inputs

2005-02-26 Thread John Gill
Christian Reis wrote: Re: [pygtk] Verifying Entry inputs On Fri, Feb 25, 2005 at 01:24:23PM +, Gustavo J. A. M. Carneiro wrote: > >It would be great having a "repository" for this pygtk friendly widgets > >if they are general enough... > >   I was hoping ki

Re: [pygtk] Verifying Entry inputs

2005-02-25 Thread John Gill
See attached code for a way to provide visual feedback as the entry is edited. John Hans-Joachim Widmaier wrote: [pygtk] Verifying Entry inputs Hi all, I'd like to have Entry widgets that allow only numbers (float) as inputs, and only in a certain range. This verificatio