You are not logged in.

#1 2011-05-09 19:46:40

Stolas
Member
Registered: 2011-05-09
Posts: 16

New Glade, Old Python GTK and new Python..

Hello,

After having programmed in C for a long time I finally lost my stubbornness and decided to give Python a fair try.
I read some tutorials, wrote some CLI applications and had some fun with it.

But now I want to write a simple Glade application, just as I was used to.
I designed the Glade interface, and I noticed "cool, Glade3". The new glade had arrived, and I got to say, I love it.
Anywho, I wrote the code from the various tutorials (1) in a file and both gave errors.
So I started to look where the program lay, and just I noticed. Those modules are only there for Python2.7
Looking into the issue a bit more I noticed it was flagged out-of-date (2) I decided to write old and dirty 2.7Python code and convert it this was released.
But then I encountered another problem.. Glade3 isn't supported yet..

I know Arch is really bleeding edge, and I love it since of this.
But this is really annoying, whats the best way to continue my journey into Python land?
I really want to get this 'serious' glade application to breath, but by the looks of it I would have to wait for the stable packages in the repositories.
Is there anything I can do to update these packages in the Main repositories instead of forging something and putting it in AUR?

Hope to hear soon how I can drown myself a bit more into the oddly-shaped world they call Python.

Thanks
-- Stolas

1) http://www.learningpython.com/2006/05/0 … and-glade/ and http://stackoverflow.com/questions/2668 … xml-object
2) http://www.archlinux.org/packages/extra/x86_64/pygtk/

Offline

#2 2011-05-11 10:02:13

Tes--
Member
Registered: 2009-11-13
Posts: 44

Re: New Glade, Old Python GTK and new Python..

Both glade (the format, not the application) and pygtk are deprecated. You should switch to gtkbuilder and pygobject (extra/py3gobject for python3).

Last edited by Tes-- (2011-05-11 10:03:59)

Offline

#3 2011-05-13 02:33:44

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: New Glade, Old Python GTK and new Python..

Tes-- is right. You can still design your UI in Glade-3 but make sure that you export it to the GtkBuilder format (.xml not .glade).

Offline

#4 2011-05-13 03:05:33

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

Re: New Glade, Old Python GTK and new Python..

Yeah, it's actually not super involved, but does require to change some code. Sigh. I've been able to make gtk python code work and display some GUI in python3. But the documentation to pygobject is close to non-existent (yeah, I've googled for it to death), so it's hard to upgrade my code. I wish the API and doc would be better defined before imposing (at least in arch) the gnome2 to gnome3 upgrade. It's like glade-3. It's gotten upgraded to 3.10 days ago, and now all my libglade formatted glade files are not even read by the new glade. I had to downgrade glade to be able to read them again. Come on !


Archer since 03/2009 - AUR packages

Offline

#5 2011-05-14 10:50:57

Stolas
Member
Registered: 2011-05-09
Posts: 16

Re: New Glade, Old Python GTK and new Python..

Hello All,

Thanks for the replies. It surely gave me better things to Google for.

Thanks
-- Stolas

Offline

Board footer

Powered by FluxBB