~jrjohansson/qutip/master

« back to all changes in this revision

Viewing changes to qutip/linux/AboutBox.py

  • Committer: Paul Nation
  • Date: 2011-04-21 04:46:56 UTC
  • Revision ID: git-v1:dd4c966b490aa468dfbd28cef66694df4bf235c8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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'))
 
17
        about.run()
 
18
        about.destroy()
 
19
 
 
20
if __name__ == "__main__":
 
21
        AboutBox(0.1)