August2012
Check to see if a button is sensitive in pygtk
Here’s a short example of checking for a save button’s sensitivity before proceeding to quit the main loop. This is something you may use when a quit button is clicked but changes have been made to a document and you want to give the user one last chance to save before exiting your application.
Automate login with mechanize and cookielib
Mechanize is good for loading pages and automating forms. This code will work as long as there’s not some weird javascript creating stuff needed for login on the fly that can’t be hand crafted on your side.