Re: [pygtk] Trouble with GnomePixmapEntry 2

2002-04-29 Thread Markus Schaber

Hi,

Alexei Gilchrist wrote:

> Thanks James, that did the trick.

Same here.

I hope those issues will get resolved soon or get obsolete with the new
gnome/gtk release.

Markus

-- 
"Ihre Meinung ist mir zwar widerlich, aber ich werde mich dafuer 
totschlagen lassen, dass sie sie sagen duerfen." - Voltaire
___
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] Trouble with GnomePixmapEntry 2

2002-04-29 Thread Alexei Gilchrist

Thanks James, that did the trick.

Alexei

On Tue, 2002-04-30 at 12:51, James Henstridge wrote:
> Alexei Gilchrist wrote:
> 
> >Here is a simply test prog to show the problem:
> >
> >--
> >from gtk import *
> >from gnome.ui import *
> >
> >w = GnomePixmapEntry()
> >w.show()
> >
> >box = GnomePropertyBox()
> >box.append_page(w,GtkLabel("image"))
> >box.show()
> >
> >mainloop()
> >
> >
> >Could someone else please confirm these:
> >
> >1) typing something into the entry widget freezes the window
> >   after a few key strokes
> >2) selecting an image via the browse button will select and render it   
> >OK, but then will freeze
> >
> >If these work OK it might be a version conflict in the local libs I need
> >to hunt down. I'm using gnome-python-1.4.2, and a debian install of
> >gnome (unstable branch).
> >  
> >
> I think I know what the problem is here.  Some parts of gnome-libs are 
> not thread safe (including this bit).  It is generally pretty easy to 
> get code to work with gtk's threading/locking model, but I guess this 
> code is broken.  By default, stable pygtk will enable threading support. 
>  You can disable threading support for your program with the following 
> call (which should be made fairly early in your program, and definitely 
> before the main loop is run):
>   import gtk
>   gtk._disable_gdk_threading()

___
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] Trouble with GnomePixmapEntry 2

2002-04-29 Thread James Henstridge

Alexei Gilchrist wrote:

>Here is a simply test prog to show the problem:
>
>--
>from gtk import *
>from gnome.ui import *
>
>w = GnomePixmapEntry()
>w.show()
>
>box = GnomePropertyBox()
>box.append_page(w,GtkLabel("image"))
>box.show()
>
>mainloop()
>
>
>Could someone else please confirm these:
>
>1) typing something into the entry widget freezes the window
>   after a few key strokes
>2) selecting an image via the browse button will select and render it   
>OK, but then will freeze
>
>If these work OK it might be a version conflict in the local libs I need
>to hunt down. I'm using gnome-python-1.4.2, and a debian install of
>gnome (unstable branch).
>  
>
I think I know what the problem is here.  Some parts of gnome-libs are 
not thread safe (including this bit).  It is generally pretty easy to 
get code to work with gtk's threading/locking model, but I guess this 
code is broken.  By default, stable pygtk will enable threading support. 
 You can disable threading support for your program with the following 
call (which should be made fairly early in your program, and definitely 
before the main loop is run):
  import gtk
  gtk._disable_gdk_threading()

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/




___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/