What order did you compile things in?  If you want gnome support in the
libglade wrapper found in gnome-python, you need to compile gnome-libs
then libglade and then gnome-python (libglade only builds gnome support
if gnome-libs is installed, and gnome-python will only build
libglade-gnome support if the libglade-gnome library was found). The
easiest way to check if everything is built correctly is to run the
command "import _gladegnome" at the python prompt.

You also have not specified which version of gnome-python you are using.
If you don't have 1.0.50, I recommend upgrading to that version and trying
again.

James.

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


On Sat, 20 Nov 1999, Michael Coddington wrote:

> Hello,
> 
> I'm trying to pick up Python and GNOME development at the same time.
> Obviously PyGnome is the way to go.  However, in attempting to try out
> some simple apps, I keep getting:
> 
> Unknown widget class "GnomeApp'
> 
> Here's the code:
> 
> __________________________
> 
> from gtk import *
> from gnome.ui import *
> from GDK import *
> import libglade
> 
> def main():
>     widgets = libglade.GladeXML('foo.glade')
>     app1 = widgets.get_widget('app1')
>     label1 = widgets.get_widget('label1')
>     label2 = widgets.get_widget('label2')
>     label3 = widgets.get_widget('label3')
>     mainloop()
> 
> if __name__ == '__main__':
>     main()
> 
> _________________________
> 
> What's going on?  From interactively importing just gtk and gnome.ui and
> calling dir() I can see GnomeApp listed.  Yet the system refuses to
> cooperate.
> 
> Any tips?  Thanks!
> 
> Michael Coddington
> [EMAIL PROTECTED]
> 
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to