Exemple #1
0
def create(parent):

    version = parent.Version
    p,c = gui_support.buildDate()
    Pmw.aboutversion("%s \n(Executed from %s)\n\nPython built on: %s\nCDAT   built on: %s" % (version,  sys.prefix, p, c))
    Pmw.aboutcopyright("""
Copyright:    2001-2008, Regents of the University of California
All rights reserved.\n\n
This release of CDAT incorporates modules from other organizations besides
LLNL some of which are distributed under open source licenses of their choosing,
and therefore may be subject to different terms and conditions.  We ask that users
respect these all terms and conditions as well as any copyright notices requirements. 
""")
    Pmw.aboutcontact( """ Go to http://cdat.sourceforge.net for documentation, support, 
bug reporting, and releases.

Program for Climate Model Diagnosis and Intercomparison
Lawrence Livermore National Laboratory
Livermore, CA 94550
""")
    about = Pmw.AboutDialog(parent, applicationname = 'The Visual Climate Data Analysis Tools')

    # Position dialog popup
    parent_geom = parent.geometry()
    geom = string.split(parent_geom, '+')
    d1 = string.atoi( geom[1] )
    d2 = string.atoi( geom[2] )
    about.geometry( "+%d+%d" % (d1, d2) )
Exemple #2
0
def create(parent):

    version = parent.Version
    p, c = gui_support.buildDate()
    Pmw.aboutversion(
        "%s \n(Executed from %s)\n\nPython built on: %s\nCDAT   built on: %s" %
        (version, sys.prefix, p, c))
    Pmw.aboutcopyright("""
Copyright:    2001-2008, Regents of the University of California
All rights reserved.\n\n
This release of CDAT incorporates modules from other organizations besides
LLNL some of which are distributed under open source licenses of their choosing,
and therefore may be subject to different terms and conditions.  We ask that users
respect these all terms and conditions as well as any copyright notices requirements. 
""")
    Pmw.aboutcontact(
        """ Go to http://cdat.sourceforge.net for documentation, support, 
bug reporting, and releases.

Program for Climate Model Diagnosis and Intercomparison
Lawrence Livermore National Laboratory
Livermore, CA 94550
""")
    about = Pmw.AboutDialog(
        parent, applicationname='The Visual Climate Data Analysis Tools')

    # Position dialog popup
    parent_geom = parent.geometry()
    geom = string.split(parent_geom, '+')
    d1 = string.atoi(geom[1])
    d2 = string.atoi(geom[2])
    about.geometry("+%d+%d" % (d1, d2))
Exemple #3
0
    def __init__(self, parent, on_close):

        Toplevel.__init__(self, parent)
        self.transient(parent)
        self.title('About CDAT Help')
        self.on_close = on_close

        # Position the dialog box relative to parent.
        xpos = int(geoparse.get_x(parent.geometry())) + 100
        ypos = int(geoparse.get_y(parent.geometry())) + 100
        self.geometry('+' + str(xpos) + '+' + str(ypos))

        p, c = gui_support.buildDate()

        text = """Climate Data Analysis Tools (CDAT) Help\n\n"""
        text += """Python built on: %s\n""" % p
        text += """CDAT   built on: %s\n\n""" % c
        text += """Copyright 2001-2008, Regents of the University of California
All rights reserved.\n\n
This release of CDAT Help incorporates modules from
other organizations besides LLNL some of which are distributed
under open source licenses of their choosing, and therefore may be subject
to different terms and conditions.  We ask that users respect these terms
and conditions as well as any copyright notices requirements.\n
"""
        text += """Go to http://cdat.sourceforge.net for documentation, support, 
bug reporting, and releases.

Program for Climate Model Diagnosis and Intercomparison
Lawrence Livermore National Laboratory
Livermore, CA 94550
"""
        label = Label(self, text=text).grid(row=2)

        # Create close button.
        button = Button(self, text='Close', command=self.close).grid(row=10)

        # Override DELETE_WINDOW handler to a local callback.
        self.protocol('WM_DELETE_WINDOW', self.close)
Exemple #4
0
    def __init__(self, parent, on_close):

        Toplevel.__init__(self, parent)
        self.transient(parent)
        self.title("About CDAT Help")
        self.on_close = on_close

        # Position the dialog box relative to parent.
        xpos = int(geoparse.get_x(parent.geometry())) + 100
        ypos = int(geoparse.get_y(parent.geometry())) + 100
        self.geometry("+" + str(xpos) + "+" + str(ypos))

        p, c = gui_support.buildDate()

        text = """Climate Data Analysis Tools (CDAT) Help\n\n"""
        text += """Python built on: %s\n""" % p
        text += """CDAT   built on: %s\n\n""" % c
        text += """Copyright 2001-2008, Regents of the University of California
All rights reserved.\n\n
This release of CDAT Help incorporates modules from
other organizations besides LLNL some of which are distributed
under open source licenses of their choosing, and therefore may be subject
to different terms and conditions.  We ask that users respect these terms
and conditions as well as any copyright notices requirements.\n
"""
        text += """Go to http://cdat.sourceforge.net for documentation, support, 
bug reporting, and releases.

Program for Climate Model Diagnosis and Intercomparison
Lawrence Livermore National Laboratory
Livermore, CA 94550
"""
        label = Label(self, text=text).grid(row=2)

        # Create close button.
        button = Button(self, text="Close", command=self.close).grid(row=10)

        # Override DELETE_WINDOW handler to a local callback.
        self.protocol("WM_DELETE_WINDOW", self.close)