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

def simple-restore-gnome::SRestoreGTK::__init__ (   self  ) 

Initializes the application.

Definition at line 74 of file simple-restore-gnome.py.

00074                         :
            """
            Initializes the application.
            """
            
            # Load default config
            self.load_config()

            # Setup glade and signals
            gtk.glade.textdomain("sbackup")
            self.signals = {"gtk_main_quit": gtk.main_quit,
                        "on_customsrc_toggled": self.enable_custom,
                        "on_treeview1_row_expanded": self.on_expand_row,
                        "on_backup_changed": self.on_backup_changed,
                        "on_apply_clicked": self.on_custom_apply,
                        "on_move_cursor":self.on_selection_change,
                        "on_restore":self.restore,
                        "on_restore_as":self.restore_as,
                        "on_customFolderButton_clicked": self.on_customFolderButton_clicked
                        }

            self.widgets = gtk.glade.XML(self.conf.get("places", "prefix") + "/share/sbackup/simple-restore.glade")
            self.widgets.signal_autoconnect(self.signals)

            # Get handle to window
            self.window = self.widgets.get_widget("restore")

            self.widgets.get_widget("labelDefaultSource").set_text(self.default_target)   

            # Load the backup tree from the default location
            self.init_tree()
            self.sel = self.flist_widget.get_selection()
            self.sel.set_mode( gtk.SELECTION_SINGLE )
            self.load_tree(self.default_target)
            

            # Start the main loop
            gtk.main()
      
      def load_config(self):


Generated by  Doxygen 1.6.0   Back to index