tis 2003-01-07 klockan 21.51 skrev John Finlay: > Hi Johan, > > I changed it to work with python 1.5.2 and PyGTK 0.6.6 as well (see the > attached). > NOTE: I changed the banner wording slightly. >
> > John Cool, but i found a few issues with the version handling. > python_version = string.split(sys.version)[0] > try: > pygtk_version = '.'.join(map(str, gtk.pygtk_version)) > gtk_version = '.'.join(map(str, gtk.gtk_version)) > except: > pygtk_version = '' > gtk_version = '' Use string.join instead of join if you want 1.5.2 compatibility. And do except AttributeError (so you don't catch all exceptions) At last set the versions to '0.6.x' and '1.2.x'. (Because no one will use pygtk2 before we introduce these changes, 1.99.something early) > I'd like to include this in the PyGTK Tutorial if you don't mind > because I think it's a great tool for people learning and exploring > PyGTK. Please, feel free to. Consider it released under GPL. I hope it can be included in the pygtk distribution in the future, just need to check with James so he don't disagree. -- Johan Dahlin <[EMAIL PROTECTED]> Async Open Source _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
