Re: [pygtk] pygtk-2.2/pygtk-2.4 and pyOpenGL
[EMAIL PROTECTED] wrote: Cedric Gustin <[EMAIL PROTECTED]> wrote on 18.08.2004 16:35:39: Could you please test your script with this binary ? http://www.pcpm.ucl.ac.be/~gustin/win32_ports/binaries/pygtkglext-1. 0.1.win32-py2.3.exe I built it against pygtk-2.3.96 and GTK+ 2.4.7. I have no TypeError exception anymore. Yes, it works for mee, too! I'll try to build it myself if I have my build-environment updated to the newest versions of gtk, pygtk, etc. Please note that currently, my pygtk installer does not provide the pygtk-2.0.pc file which is required by pygtkglext (its distutils script calls `pkg-config --cflags --libs pygtk-2.0`). Even though the pygtk setup.py script is supposed to install pygtk-2.0.pc (and pygtk-codegen-2.0), it does not work correctly when a windows binary installer is created. Hopefully this will be fixed in the near future as I'm finalizing a patch against CVS that will address this issue. This means it's only the building against the newest pygtk and gtk versions that makes the difference!? You might want to contact Noafumi (the pygtkglext maintainer) about this. I could also be interesting to try to compile pygtkglext with different configurations, say GTK+-2.4 + pygtk-2.2. Cedric ___ 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] idle_add questions
Steve McClure <[EMAIL PROTECTED]> writes: > > My basic problem is this, I have a dialog that takes ages to load data. > > I thought I would do the data retrieval and dialog update in an idle > > function. However, my initial dialog never gets displayed making me > > think that I'm not getting back to the event loop before the idle task > > runs. That really doesn't seem to be the case though since the GUI > > responds to user input, albeit, incredibly slow. So slow as to really be > > unusable. > > It seems to be working fine, now that I found the real priority numbers. > If I can just figure out why everything comes to a screeching halt as > soon as I return gtk.FALSE from my idle function. I hope someone else can give you more definitive answer, but I wanted to point out something about idle functions in gtk+. Idle functions aren't designed for long running computations unless they can be broken up into small, quick pieces. I think you will want to cooperatively handle gui events during your long computation or use a separate thread. See the pygtk FAQ item 3.7 for a discussion of this. http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq03.007.htp Idle functions are scheduled when gtk+ doesn't have any other work to perform, but gtk+ doesn't preempt them. Each idle function will run to completion once it's started. Using a high priority actually makes things worse rather than better since gtk+ will then run the slow computation instead of handling gui events and the gui will freeze. (The gtk+ docs say "Note that you will interfere with GTK+ if you use a priority above GTK_PRIORITY_RESIZE.") You can process gui events in your idle function using gtk.main_iteration() if you can run this every so often while gtk.events_pending(): gtk.main_iteration() If there's no way to break up your computation to run the main loop then you should consider using a separate thread. [Another possibility that avoids threads is to use an event driven framework like twisted.] ___ 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] idle_add questions
On Thu, 2004-08-19 at 21:42, Steve McClure wrote: > I have two questions about idle procedures and this applies to pygtk > 0.6.9 > > 1) why can't you pass args to idle_add_priority? > 2) I take that the actual priorities are really defined in the pygtk > module > 3) Is 0 high or low? Looks like from http://developer.gnome.org/doc/API/glib/glib-the-main-event-loop.html#G-PRIORITY-LOW-CAPS that 0 is high. So I change my priority to 300 and that seems like what I want. > 4) If I use gtk.idle_add() is the default priority not lower than > regular gtk events? > > My basic problem is this, I have a dialog that takes ages to load data. > I thought I would do the data retrieval and dialog update in an idle > function. However, my initial dialog never gets displayed making me > think that I'm not getting back to the event loop before the idle task > runs. That really doesn't seem to be the case though since the GUI > responds to user input, albeit, incredibly slow. So slow as to really be > unusable. It seems to be working fine, now that I found the real priority numbers. If I can just figure out why everything comes to a screeching halt as soon as I return gtk.FALSE from my idle function. > > Thanks, -- Steve McClure <[EMAIL PROTECTED]> ___ 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] idle_add questions
I have two questions about idle procedures and this applies to pygtk 0.6.9 1) why can't you pass args to idle_add_priority? 2) I take that the actual priorities are really defined in the pygtk module 3) Is 0 high or low? 4) If I use gtk.idle_add() is the default priority not lower than regular gtk events? My basic problem is this, I have a dialog that takes ages to load data. I thought I would do the data retrieval and dialog update in an idle function. However, my initial dialog never gets displayed making me think that I'm not getting back to the event loop before the idle task runs. That really doesn't seem to be the case though since the GUI responds to user input, albeit, incredibly slow. So slow as to really be unusable. Thanks, -- Steve McClure <[EMAIL PROTECTED]> ___ 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] Tray area
I guess I should have been more explicit with my last post. BloGTK has already done the wrapping. You can go into the source tree and build just the wrapper, and install via distutils iirc. google for BloGTK. -darryl On Thu, 19 Aug 2004 22:12:11 +0100, Graham Ashton <[EMAIL PROTECTED]> wrote: > On Wed, 2004-08-18 at 19:12, Gabriele Erba wrote: > > Hi, I am new in Pygtk. I would like to know if is possible to use the > > tray notification area with Pytgk. I try to search in the documentation > > but with no result. > > You need to wrap the stuff in libegg. Ross Burton has a good tutorial on > wrapping gobjects that just so happens to do just that: > > http://www-106.ibm.com/developerworks/linux/library/l-wrap/ > > -- > Graham > > > > ___ > 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 mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Lazy tree implementation
Thought I'd share my lazy tree implementation. The idea is that child rows in a tree are not filled in until the user clicks on the expander for that row. Until then, an single unset row is used as a placeholder for the the child rows. http://members.cox.net/davecook/pygtk/LazyTreeStore.py To use it, you need to structure your tree data as nodes with getChildren() and hasChild() methods. An example is show for browsing a filesystem. Dave Cook ___ 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] Tray area
On Wed, 2004-08-18 at 19:12, Gabriele Erba wrote: > Hi, I am new in Pygtk. I would like to know if is possible to use the > tray notification area with Pytgk. I try to search in the documentation > but with no result. You need to wrap the stuff in libegg. Ross Burton has a good tutorial on wrapping gobjects that just so happens to do just that: http://www-106.ibm.com/developerworks/linux/library/l-wrap/ -- Graham ___ 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] PyGTK for Mac OS X?
On Thu, Aug 19, 2004 at 10:56:16AM -0700, David M. Cook wrote: > On Thu, Aug 19, 2004 at 11:31:35AM +0400, Mikhail Sobolev wrote: > > > I looked around for PyGTK port for Mac OS X, and it looks like such a > > thing does not exist (at least, as an official release). Is my > > impression correct? > > Pygtk runs fine under Apple's X11 server > > http://www.apple.com/macosx/features/x11/download/ > > The quickest way to get the gtk libraries under OS X is to install darwinports > > http://darwinports.opendarwin.org/ Thank you, David -- Misha signature.asc Description: Digital signature ___ 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] PyGTK for Mac OS X?
On Thu, Aug 19, 2004 at 11:31:35AM +0400, Mikhail Sobolev wrote: > I looked around for PyGTK port for Mac OS X, and it looks like such a > thing does not exist (at least, as an official release). Is my > impression correct? Pygtk runs fine under Apple's X11 server http://www.apple.com/macosx/features/x11/download/ The quickest way to get the gtk libraries under OS X is to install darwinports http://darwinports.opendarwin.org/ Dave Cook ___ 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] Displaying Pixbuf flags in a TreeView?
Paul Dickson <[EMAIL PROTECTED]> writes: > Any suggestions for the best way to display Pixbuf flags for boolean > values? > > I have a treestore with a couple of columns of boolean values and I'd like > to display a pixbuf for the True values. Use cell data funcs for those columns. The cell data funcs should test the model values and set the cell renderer 'pixbuf' properties to the pixbuf to display or None. ___ 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] pyGTK and framebuffers and glade
Kimo Lewis <[EMAIL PROTECTED]> wrote: > I am a newbe and am wanting to write an app for the linux console using > pyGTK and framebuffers and glade. Does anyone know how to make this > environment work? I don't have to use glade, but pyGTK and framebuffers is > a must. > PyGTK has nothing to do with this, only GTK is. www.directfb.org ? -- Sridhar - http://cs.annauniv.edu/~rsridhar Blog: http://www.livejournal.com/users/sridharinfinity ___ 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] Displaying Pixbuf flags in a TreeView?
Any suggestions for the best way to display Pixbuf flags for boolean values? I have a treestore with a couple of columns of boolean values and I'd like to display a pixbuf for the True values. -Paul ___ 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] PyGTK for Mac OS X?
Hi I looked around for PyGTK port for Mac OS X, and it looks like such a thing does not exist (at least, as an official release). Is my impression correct? Regards -- Misha signature.asc Description: Digital signature ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/