[pygtk] More pyGTK questions.
Neil Munro
neilmunro at gmail.com
Thu Nov 13 11:07:51 WST 2008
Hey, again, have spent most of the day playing around and reading about
python and glade and thus far this is what I have, now I have a few issues I
have questions about, firstly how do I get the text associated with a
toolbar button and change it for example if you notice the 'play' button
when this is pressed I wish for the button to be renamed and re-iconed to
'pause' but have no idea how to do this or even if it's possible, I imagine
so, but I don't actually know.
Secondly, while I have discovered a way to close a window by essentially
crashing it in program what is the safest way to close a gtk window from
within python, in my program here I have an about dialog box that opens, but
when it closes it either takes the whole application with it (which I
quickly corrected) or crashes un-gracefully and while the window appears to
close, it's in fact crashed.
If anyone could provide help I'd again, be grateful, obviously I'm just
learning the language, and while my method to learn a language may seem odd,
I don't tent to learn from reading up on programming languages, I learn by
solving problems I come across, and since I'm a 'scratch my own itch' kinda
guy I start writing applications to solve problems I have and learn a new
language as I go, it's the most effective way for me to learn a new language
by drafting an application and building it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20081113/2b37e6d1/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RecordStore.py
Type: text/x-python
Size: 3689 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20081113/2b37e6d1/attachment-0001.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: musicdb-gui.glade
Type: application/x-glade
Size: 22551 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20081113/2b37e6d1/attachment-0001.bin
More information about the pygtk
mailing list