[pygtk] pygtk 1.99 on OS X

2003-06-19 Thread jmeskill-list
has anyone been able to get PyGTK 1.99 to work on OS X? I have tried to compile it from source and I get this error: make all-recursive Making all in codegen make[2]: Nothing to be done for `all'. Making all in gtk /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -std=c9x -o _gtkmodule.la -rp

Re: [pygtk] Finding the color set by modify_bg()

2003-06-19 Thread Art Haas
On Thu, Jun 19, 2003 at 06:35:59PM -0700, John Finlay wrote: > Hi Art, > > I believe that it's the case if you put da in a Window and show() it. > That must be it. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without r

Re: [pygtk] Finding the color set by modify_bg()

2003-06-19 Thread Art Haas
On Thu, Jun 19, 2003 at 08:02:16PM -0500, Art Haas wrote: > On Thu, Jun 19, 2003 at 05:50:45PM -0700, John Finlay wrote: > > > > Hi Art, > > > > I don't think you should get the same gtk.gdk.Color object returned from: > > > > da.get_style().bg[gtk.STATE_NORMAL] > > > > even twice in a row. A n

Re: [pygtk] Finding the color set by modify_bg()

2003-06-19 Thread John Finlay
Hi Art, I believe that it's the case if you put da in a Window and show() it. John Art Haas wrote: On Thu, Jun 19, 2003 at 05:50:45PM -0700, John Finlay wrote: Hi Art, I don't think you should get the same gtk.gdk.Color object returned from: da.get_style().bg[gtk.STATE_NORMAL] even twice

Re: [pygtk] Finding the color set by modify_bg()

2003-06-19 Thread Art Haas
On Thu, Jun 19, 2003 at 05:50:45PM -0700, John Finlay wrote: > > Hi Art, > > I don't think you should get the same gtk.gdk.Color object returned from: > > da.get_style().bg[gtk.STATE_NORMAL] > > even twice in a row. A new gtk.gdk.Color object is created each time. I > assume that the rgb value

Re: [pygtk] Finding the color set by modify_bg()

2003-06-19 Thread John Finlay
Hi Art, I don't think you should get the same gtk.gdk.Color object returned from: da.get_style().bg[gtk.STATE_NORMAL] even twice in a row. A new gtk.gdk.Color object is created each time. I assume that the rgb values are the same though. John Art Haas wrote: Hi. I'm sure this can be done an

[pygtk] Finding the color set by modify_bg()

2003-06-19 Thread Art Haas
Hi. I'm sure this can be done and I'm just overlooking something. I set the background color of a gtk.DrawingArea widget like so ... da = gtk.DrawingArea() color = gtk.gdk.color_parse('#ff3355') # any color will do da.modify_bg(gtk.STATE_NORMAL, color) In a callback I'd like to retreive the colo

[pygtk] Associating a Window with a MenuItem?

2003-06-19 Thread Peter Schulte-Stracke
Hi, I'd like to (perhaps) share the menu call backs between multiple windows. So I tried to get the window concerned from the MenuItem object passed to the call back. Now, I'm puzzled by the fact that in a call back the get_toplevel() for the MenuItem does not give the associated window, nor d

Re: [pygtk] problem with rh9

2003-06-19 Thread Joao Pedrosa
Just to fix things, I replied privatly to Mark by mistake. He said it worked for him. Regards, Joao --- Joao Pedrosa <[EMAIL PROTECTED]> wrote: > > Hi, > > I have rh9 as well and it works ok for me. > > Perhaps you have some version conflict over > there. > > You could rewrite as follows