Re: [pygtk] error messages

2002-11-08 Thread Jay Graves
> > Thats the problem.  The Debian unstable version of python-gnome is still
> > at 1.4.4
> > 
> > I guess I will have to compile 1.99.x myself or wait till the newest
> > packagte is available.
> 
> Jay, did you manage to get it working? 1.4.4 should support parallel
> installing with 1.99.13 or later, which is why I ask.

I was not able to install 1.99.13 the ./configure script fails when
checking for GLIB >= 2.0.0

This is on a Debian Sid system with Gnome 2 installed
-- 

Jay Graves 
[EMAIL PROTECTED]
jay.skabber.com

   O__
  _/`.\
  `=( '




msg04770/pgp0.pgp
Description: PGP signature


Re: [pygtk] error messages

2002-11-06 Thread Christian Reis
On Sun, Nov 03, 2002 at 10:34:50PM -0700, Jay Graves wrote:
> > If your system is set up to have the old pygtk as default, you will need 
> > to do the "import pygtk; pygtk.require('2.0')" bit first, and then 
> > import the "gnome" module.  You will also need to make sure you have a 
> > 1.99.x version of gnome-python installed.
> 
> Thats the problem.  The Debian unstable version of python-gnome is still
> at 1.4.4
> 
> I guess I will have to compile 1.99.x myself or wait till the newest
> packagte is available.

Jay, did you manage to get it working? 1.4.4 should support parallel
installing with 1.99.13 or later, which is why I ask.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
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] error messages

2002-11-03 Thread Jay Graves
> If your system is set up to have the old pygtk as default, you will need 
> to do the "import pygtk; pygtk.require('2.0')" bit first, and then 
> import the "gnome" module.  You will also need to make sure you have a 
> 1.99.x version of gnome-python installed.

Thats the problem.  The Debian unstable version of python-gnome is still
at 1.4.4

I guess I will have to compile 1.99.x myself or wait till the newest
packagte is available.

Thanks

-- 

Jay Graves 
[EMAIL PROTECTED]
jay.skabber.com

   O__
  _/`.\
  `=( '




msg04715/pgp0.pgp
Description: PGP signature


Re: [pygtk] error messages

2002-11-03 Thread James Henstridge
Jay Graves wrote:


Your glade file makes use of GNOME widgets, but you have not initialised 
the GNOME libraries.  You need to call gnome.init("progname", "version") 
after importing the libs you want (gnome.ui, bonobo.ui, etc).
   


Thank you very much for your help but I am still a bit confused.
if I 
import pygtk, gnome
pygtk.require('2.0')
import gtk, gtk.glade

then gnome.init() is not a valid method
 

If your system is set up to have the old pygtk as default, you will need 
to do the "import pygtk; pygtk.require('2.0')" bit first, and then 
import the "gnome" module.  You will also need to make sure you have a 
1.99.x version of gnome-python installed.

James.

--
Email: [EMAIL PROTECTED]  | Linux.conf.au   http://linux.conf.au/
WWW:   http://www.daa.com.au/~james/ | Jan 22-25   Perth, Western Australia. 



___
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] error messages

2002-11-03 Thread Jay Graves
On Sun, Nov 03, 2002 at 08:46:28PM -0200, Christian Reis wrote:
> On Fri, Nov 01, 2002 at 03:11:29PM -0700, Jay Graves wrote:
> > import pygtk, gnome
> > pygtk.require('2.0')
> > import gtk, gtk.glade
> > 
> > then gnome.init() is not a valid method
> 
> perhaps import gnome.ui before? 
> (i'm curious because i want to update the faq)

when I try an import gnome.ui I get this

Gdk-WARNING **: locale not supported by C library
Traceback (most recent call last):
  File "./test", line 4, in ?
  pygtk.require('2.0')
  File "/usr/lib/python2.2/site-packages/pygtk.py", line 44, in require
assert not sys.modules.has_key('gtk'), \
AssertionError: pygtk.require() must be called before importing gtk

again this is with 
import pygtk
import gnome, gnome.ui
pygtk.require('2.0')
import gtk
import gtk.glade

The following is the only way I have gotten it to work, except all those
errors are pinted to the standard out.
import pygtk
import gnome
pygtk.require('2.0')
import gtk
import gtk.glade

I hope this helps
-- 

Jay Graves 
[EMAIL PROTECTED]
jay.skabber.com

   O__
  _/`.\
  `=( '




msg04708/pgp0.pgp
Description: PGP signature


Re: [pygtk] error messages

2002-11-03 Thread Christian Reis
On Fri, Nov 01, 2002 at 03:11:29PM -0700, Jay Graves wrote:
> import pygtk, gnome
> pygtk.require('2.0')
> import gtk, gtk.glade
> 
> then gnome.init() is not a valid method

perhaps import gnome.ui before? 
(i'm curious because i want to update the faq)
 
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
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] error messages

2002-11-01 Thread Jay Graves
> Your glade file makes use of GNOME widgets, but you have not initialised 
> the GNOME libraries.  You need to call gnome.init("progname", "version") 
> after importing the libs you want (gnome.ui, bonobo.ui, etc).

Thank you very much for your help but I am still a bit confused.
if I 
import pygtk, gnome
pygtk.require('2.0')
import gtk, gtk.glade

then gnome.init() is not a valid method
-- 

Jay Graves 
[EMAIL PROTECTED]
jay.skabber.com

   O__
  _/`.\
  `=( '




msg04688/pgp0.pgp
Description: PGP signature


Re: [pygtk] error messages

2002-11-01 Thread James Henstridge
Jay Graves wrote:


Hello
I have created a test app with pygtk and glade.  When I run the app the
window appears however there are many errors written to the terminal.
Can anyone tell me what these mean, and how to get rid of them.
Also, for bonus points, how come the app quits when I do a File | Quit
but not when I close the window?

I have attached the app the glade file and a file with the list of
errors.


Your glade file makes use of GNOME widgets, but you have not initialised 
the GNOME libraries.  You need to call gnome.init("progname", "version") 
after importing the libs you want (gnome.ui, bonobo.ui, etc).

James.

--
Email: [EMAIL PROTECTED]  | Linux.conf.au   http://linux.conf.au/
WWW:   http://www.daa.com.au/~james/ | Jan 22-25   Perth, Western Australia. 




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