PyGTK overload

E

Egbert Bouwman

As a newby to PyGTK I already have produced some gui's I like,
but I have difficulties in finding out what method or other instrument
I need for doing various things.

I have not yet found the tutorial or otherwise that explains concepts
like setting (relative) sizes, setting or manipulating focus,
setting colors, etc.

Also when I think I need a method with a specific word it its name,
and I cannot find it, there are two (not necessarily exclusive)
possibilities:
- I have to go higher up the ancestry
- I look for the wrong word

Is there an other way than just going on and become familiar with it ?

egbert
 
J

Julien Poissonnier

Egbert said:
I have not yet found the tutorial or otherwise that explains concepts
like setting (relative) sizes, setting or manipulating focus,
setting colors, etc.

Have a look at the PyGTK tutorial and reference:
http://www.pygtk.org/pygtk2tutorial/index.html
http://www.pygtk.org/pygtk2reference/index.html
and here's a list of articles about PyGTK:
http://www.pygtk.org/articles.html
If you haven't allready done so, be sure the try out Glade, a GUI
builder for (Py)GTK.

-Julien
 
E

Egbert Bouwman

Have a look at the PyGTK tutorial and reference:
http://www.pygtk.org/pygtk2tutorial/index.html
http://www.pygtk.org/pygtk2reference/index.html
and here's a list of articles about PyGTK:
http://www.pygtk.org/articles.html

Yes, I know them , and I am busy reading, using and digesting them,
not too much at a time, and they made possible what I have done so far.
Virtual beers for the authors.
But these texts are the core of my problem as well.
I need something that goes at right angles through them,
linking the related subjects, and giving an overall picture.
If you haven't allready done so, be sure the try out Glade, a GUI
builder for (Py)GTK.

Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?

egbert
 
P

Paramjit Oberoi

Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?

I agree that using Glade may be put off until you understand how things
would be done 'by hand'. But, when experimenting with GUI layouts, it is
useful to do the experimentation with Glade rather than by editing
scripts. Also, playing with Glade gives you a good idea of the widgets
available in the toolkit and how they should be composed.

If you have not already discovered it, check out pygtkconsole.py:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65109

It lets you build/manipulate GUIs from an interactive python prompt.
 
P

P

Egbert said:
Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?

Unless you need to construct the interface
at run time (for e.g. creating arrays of buttons),
just let libglade create the interface for you.
You gain nothing by doing this drudgery yourself.

Pádraig.
 
P

P

Egbert said:
Glade is for later, when I am more comfortable with PyGTK.
Or am I too conservative ?

Unless you need to construct the interface
at run time (for e.g. creating arrays of buttons),
just let libglade create the interface for you.
You gain nothing by doing this drudgery yourself.

Pádraig.
 

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
474,202
Messages
2,571,057
Members
47,666
Latest member
selsetu

Latest Threads

Top