On Fri, 2004-03-12 at 01:52, Alexandre Strube wrote: > Em Qui, 2004-03-11 �s 19:49, Pierre N escreveu: > > > > > I advise you to have a look at the one at handheld.org: > > > > http://handhelds.org/~nelson/pyglade/pyglade-tutorial > > > > It's really great, and my whole application is based on this. This is > > > > very elegant. Considering the size of my beast... > > > On thing I find VERY confusing in all of this are those modules' names, > > > as well as libraries versions. > > > For instance: > > > that helloworld example from the above page has the following line: > > > import gtk, libglade > > > > Well, ok. I don't have any idea of which library is libglade, my python > > > cannot find it. It says "ImportError: No module named libglade". > > I didn't even realise this, you are right. Well, just check with your > > python env. which modules you have and which you don't: > > I've been reading other tutorials... but you said that you were using > the handhelds' one yourself, so the only thing I tried was run that > helloworld. This made me confused... I shoud have said I was inspired by. I have a few things which are different. Including the use of the gtk.glade module
> > >>> help() > > help>modules > > This is good to know. I was looking for this for quite some time. > > > > help>gtk.glade > > [... here you go, the whole API just for you ...] > > hoohooooo! :-) > > > > > libglade.GladeXML(file) > > > gtk.glade.XML(file) > > > different "native" lib. Here you go, you don't care which one you need. > > What worries me is that I would have to convert functions from one to > another on every different distro. Now, that is not the case. On every distro, as long as the pygtk 2.x package is installed you always call the gtk.glade module (if you want to use pygtk 2.x). You can use this kind of check as well: try: import gtk.glade except: # Something wrong with the module > > > What is the difference? I don't know. What are the versions? I don't > > > know. Is one for gtk/glade 1 and other for gtk2/glade2? I don't know. > > I suppose this is the explanation. I'm sure you can google for libglade > > you'll find everything you need to know about libglade. On > > http://www.python.org as well... > > Libglade is from the guy who created PyGTK. In fact, it's hosted at the > same place this list is. Ain't this ackward? Well, if he did the two of them, and they are just different versions of pygtk, I don't think it's ackward. > > At the same time I think you want to know too much about everything and > > you can't seem to see the end of it. Hard to be motivated... Just try to > > focus on what you have/like to do. Don't try to know stuff you don't > > need. Not yet anyway ;-p > > I was just trying to run a hello world ;-) The problem looks like this hello world is pretty old ;-p -- Pierre
signature.asc
Description: This is a digitally signed message part
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
