[pygtk] PyGTK for Mac OS X?

2004-08-19 Thread Mikhail Sobolev
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/


[pygtk] Displaying Pixbuf flags in a TreeView?

2004-08-19 Thread Paul Dickson
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/


Re: [pygtk] pyGTK and framebuffers and glade

2004-08-19 Thread Sridhar R
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/


Re: [pygtk] Displaying Pixbuf flags in a TreeView?

2004-08-19 Thread Doug Quale
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 for Mac OS X?

2004-08-19 Thread David M. Cook
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] PyGTK for Mac OS X?

2004-08-19 Thread Mikhail Sobolev
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] Tray area

2004-08-19 Thread Graham Ashton
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] Lazy tree implementation

2004-08-19 Thread David M. Cook
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

2004-08-19 Thread darryl vandorp
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/


Re: [pygtk] idle_add questions

2004-08-19 Thread Steve McClure
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/


Re: [pygtk] idle_add questions

2004-08-19 Thread Doug Quale
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=showfile=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/