1
import gtk,os,scipy,numpy,matplotlib
2
CD_BASE = os.path.dirname(__file__)
3
class AboutBox(gtk.Window):
4
def __init__(self,version):
5
super(AboutBox, self).__init__()
6
about = gtk.AboutDialog()
7
about.set_size_request(450, 320)
8
about.set_position(gtk.WIN_POS_CENTER)
9
about.set_program_name("QuTiP")
10
about.set_version(str(version))
11
about.set_license("QuTiP is licensed under the GPL3.\nSee the enclosed 'COPYING.txt' for more information.")
12
about.set_copyright("Copyright (c) 2011")
13
about.set_authors(['Paul D. Nation','Robert J. Johansson'])
14
about.set_comments("The Quantum Toolbox in Python\nNumpy Version: "+str(numpy.__version__)+"\nScipy Version: "+str(scipy.__version__)+"\nMatplotlib Version: "+str(matplotlib.__version__))
15
about.set_website("http://dml.riken.jp")
16
about.set_logo(gtk.gdk.pixbuf_new_from_file(str(CD_BASE)+'/logo.png'))
20
if __name__ == "__main__":