glade

P

p.kosina

Does there exist any python plug-in (or something like that) for Glade
2.0.1. win32 port? I cant find any or links are unavailable.
Thanks
Pavel
 
P

Poissonnier Julien

p.kosina said:
Does there exist any python plug-in (or something like that) for Glade
2.0.1. win32 port? I cant find any or links are unavailable.
Thanks
Pavel
PyGTK for Windows includes libglade support
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/
There is a nice all-in-one installer for windows (includes GTK+, Glade,
Docs, etc) which works well with the Windows PyGTK port
 
P

p.kosina

I have installed all of it but I can not find anything how to translate
*.glade to python scripts. I do not need it urgently just interested.
I have found glc.py which makes some errors...
In fact I do not know how to handle libglade.
Probably some tutorial would help.
I use py2.3 under win2k.
Thanks
Pavel



Poissonnier Julien napsal(a):
 
P

P

p.kosina said:
I have installed all of it but I can not find anything how to translate
*.glade to python scripts. I do not need it urgently just interested.
I have found glc.py which makes some errors...
In fact I do not know how to handle libglade.
Probably some tutorial would help.
I use py2.3 under win2k.

I've never done it under windows but I do know it works.
Essentially you tell libglade to load the glade file.
This will render the GUI for you and attach the signal
handlers (python functions).

I've a simple tutorial (only tested on linux) here:
http://www.pixelbeat.org/talks/pygtk/

Pádraig.
 
P

Poissonnier Julien

p.kosina said:
I have installed all of it but I can not find anything how to translate
*.glade to python scripts. I do not need it urgently just interested.
I have found glc.py which makes some errors...
In fact I do not know how to handle libglade.
Probably some tutorial would help.
I use py2.3 under win2k.
Thanks
Pavel

The easiest way is to leave your GUI description as a glade file and use
libglade to load it at runtime.
A nice libglade tutorial can be found at
http://www.linuxjournal.com/article.php?sid=6586
 
P

p.kosina

import pygtk - OK
pygtk.require("2.0") - OK
import gtk -OK
import gtk.glade - ERROR something wrong with dll. And - there exist
glade.pyd in gtk directory! I caan not check wht for modules tries to
import this one, cause it is not text file. Problem is perhaps somewhere
in libglade.dll or libglade-2.0.0.dll. I try to copy this file in each
directory but import libglade makes error each time.
Thank you for any idea
Pavel






Poissonnier Julien napsal(a):
 
P

p.kosina

I execute first three steps + copy libglade-2.0.0.dll to GTK/2.0/bin
and everything works now fine.
Thank you
Pavel


Poissonnier Julien napsal(a):
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top