maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Diablo Python has no gtk.glade? (https://talk.maemo.org/showthread.php?t=21381)

TrueJournals 2008-06-28 01:51

Diablo Python has no gtk.glade?
 
I just refreshed the application list and updated everything, which installed a new version of python. Unfortunately, this version seems to not include the gtk.glade python module. Anyone else have this problem?

brontide 2008-06-28 03:39

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by TrueJournals (Post 196910)
I just refreshed the application list and updated everything, which installed a new version of python. Unfortunately, this version seems to not include the gtk.glade python module. Anyone else have this problem?

Seems fine here... maybe it's just a stock package now?

Code:

Nokia-N810-23-14:~# python
Python 2.5.2 (r252:60911, May 12 2008, 12:58:03)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk.glade
>>>


TrueJournals 2008-06-28 04:22

Re: Diablo Python has no gtk.glade?
 
Ah, but I have a different build date of python than you do. Anyway, just seems to be some diablo extras growing pains. I'm guessing it'll be fixed in the next day or two, and if not, I'll file a bug.
Code:

/home/user # python
Python 2.5.2 (r252:60911, Jun 27 2008, 17:32:23)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk.glade
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named glade
>>>


EisFrei 2008-06-28 21:59

Re: Diablo Python has no gtk.glade?
 
I have got exactly the same problem as you. Hope this is fixed soon.

brontide 2008-06-28 22:17

Re: Diablo Python has no gtk.glade?
 
Please post a bug report if you want it fixed.

Glade was being depreciated in favor of Gtk.Builder. I switched on app to it and it's not that hard to do.

yerga 2008-06-28 23:27

Re: Diablo Python has no gtk.glade?
 
I opened a bug in the pymaemo tracker.

lorelei 2008-06-29 08:56

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by brontide (Post 197140)
Please post a bug report if you want it fixed.

Glade was being depreciated in favor of Gtk.Builder. I switched on app to it and it's not that hard to do.

Thanks for the heads-up about the upcoming depreciation of Glade! Does switching to gtk.Builder require additional package dependencies?

yerga 2008-06-29 11:14

Re: Diablo Python has no gtk.glade?
 
Quote:

Originally Posted by lorelei (Post 197259)
Thanks for the heads-up about the upcoming depreciation of Glade! Does switching to gtk.Builder require additional package dependencies?

A bit vaguely:

Convert the glade file in a xml file understandable for gtk.builder (there is a script called gtk-builder-convert). At the moment Glade doesn't have support for the gtkbuilder files, but it's in its todo list.

And then in python code:
builder = gtk.Builder()
builder.add_from_file('the new xml file')
builder.get_object do the same thing as gladetree.get_widget

gtk.builder is available in the gtk module, so it's not necessary to install anything.

lorelei 2008-06-29 11:55

Re: Diablo Python has no gtk.glade?
 
Excellent, thanks! I'll look into converting Erminig to gtk.builder() :)

brontide 2008-06-29 18:13

Re: Diablo Python has no gtk.glade?
 
Not to be an indian giver... does the 770 support Gtk.Builder or is that limited to the gtk backport in OS2008?


All times are GMT. The time now is 17:00.

vBulletin® Version 3.8.8