#!/usr/bin/env python
# -*- coding: utf8 -*-


"""GWRF - A GTK interface for Windows Registry Fixer.

About dialog module.

"""

__author__ = "<NAME>"
__version__ = "0.0.1"
__licence__ = "GPLv3"


import pygtk
pygtk.require("2.0")
import gtk, gtk.glade


GLADE_FILES_PATH = "glade"


class AboutDialog(object):
    
    """About dialog class."""
    
    def __init__(self):
        widgets_tree = gtk.glade.XML("%s/aboutdialog.glade" % GLADE_FILES_PATH)
        
        self.aboutdialog = widgets_tree.get_widget("aboutdialog")
        
        # This hack enables close button in this window.
        self.aboutdialog.connect("response", lambda d, r: d.destroy())
        
        self.aboutdialog.set_version(__version__)
        
        self.aboutdialog.connect("destroy", self.destroy)
        self.aboutdialog.show_all()
    
    def run(self):
        gtk.main()
    
    def destroy(self, widget, data=None):
        gtk.main_quit()


# 
# Main
# 

if __name__ == "__main__":
    aboutdialog = AboutDialog()
    aboutdialog.run()


#!/usr/bin/env python
# -*- coding: utf8 -*-


"""GWRF - A GTK interface for Windows Registry Fixer.

About dialog module.

"""

__author__ = "<NAME>"
__version__ = "0.0.1"
__licence__ = "GPLv3"


import pygtk
pygtk.require("2.0")
import gtk, gtk.glade


GLADE_FILES_PATH = "glade"


class AboutDialog(object):
    
    """About dialog class."""
    
    def __init__(self):
        widgets_tree = gtk.glade.XML("%s/aboutdialog.glade" % GLADE_FILES_PATH)
        
        self.aboutdialog = widgets_tree.get_widget("aboutdialog")
        
        # This hack enables close button in this window.
        self.aboutdialog.connect("response", lambda d, r: d.destroy())
        
        self.aboutdialog.set_version(__version__)
        
        self.aboutdialog.connect("destroy", self.destroy)
        self.aboutdialog.show_all()
    
    def run(self):
        gtk.main()
    
    def destroy(self, widget, data=None):
        gtk.main_quit()


# 
# Main
# 

if __name__ == "__main__":
    aboutdialog = AboutDialog()
    aboutdialog.run()


#!/usr/bin/env python # -*- coding: utf8 -*- GWRF - A GTK interface for Windows Registry Fixer.  About dialog module. About dialog class. # This hack enables close button in this window. # # Main #