More pyGTK questions.
Subject: More pyGTK questions.
Newsgroups: gmane.comp.gnome.gtk+.python
Date: 2008-11-13 02:07:51 GMT
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.
_______________________________________________ pygtk mailing list pygtk <at> daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
RSS Feed