Logo Search packages:      
Sourcecode: nagstamon version File versions  Download package

def Nagstamon::nagstamonGUI::GUI::AboutDialog (   self  ) 

    about nagstamon

Definition at line 538 of file nagstamonGUI.py.

00538                          :
        """
            about nagstamon
        """
        about = gtk.AboutDialog()
        about.set_name(self.name)
        about.set_version(self.version)
        about.set_website(self.website)
        about.set_copyright(self.copyright)
        about.set_comments(self.comments)
        # read LICENSE file
        license = ""
        try:
            try:
                # try to find license file in same directory
                f = open(self.Resources + "/LICENSE", "r")
            except:
                # try to find license file in unixoid directory /usr/share/doc/nagstamon
                f = open("/usr/share/doc/nagstamon/LICENSE", "r")
            s = f.readlines()
            f.close()
            for line in s:
                license += line
        except:
            license = "Nagstamon is licensed under GPL 2.0.\nYou should have got a LICENSE file distributed with nagstamon.\nGet it at http://www.gnu.org/licenses/gpl-2.0.txt."
        about.set_license(license)
        
        self.popwin.Close()
        about.run()
        about.destroy()


    def ErrorDialog(self, error):


Generated by  Doxygen 1.6.0   Back to index