I'm writing an Python app that makes use of a Gtk.AboutDialog. Some of the information shown in the dialog comes from setting properties for bits of info I've just given elsewhere, and I'd like to avoid duplication.
For instance, in the code:
about = Gtk.AboutDialog() about.set_program_name("Qreator") about.set_version('0.1')
The program name and the version are already specified in
setup.py (I'm using
python-distutils-extra as the build system).
So is there a way to extract that information at runtime (be it from
setup.py or somewhere else), so that I don't have to manually specify it again?