Exemplo n.º 1
0
    def __init__(self):
        self.app_title = "nametrans"

        self.app_path = os.path.dirname(__file__)
        self.app_resource_path = os.path.join(self.app_path, 'resources')
        self.app_license_file = os.path.join(self.app_path, 'doc', 'LICENSE')

        self.app_help_url = "http://www.matusiak.eu/numerodix/blog/index.php/2011/03/25/nametrans-renaming-with-search-replace/"

        self.app_icon = "icon.ico"
        self.app_icon_path = os.path.join(self.app_resource_path,
                                          self.app_icon)
        self.glade_file = "forms.glade"

        self.color_diff_left = "#b5b5ff"
        self.color_diff_right = "#b5ffb5"
        self.color_error_bg = "#fd7f7f"

        self.parameters_panel = ParametersPanel().pyinit(self)
        self.fileview = FileviewList().pyinit(self)
        self.log = \
            LogWindow(self, functools.partial(self.init_widget, 'logwindow'))
        self.about = \
            AboutDialog(self, functools.partial(self.init_widget, 'aboutdialog'))

        self.init_gui()
        self.init_signals()
        self.run_gui()