Logo Search packages:      
Sourcecode: avant-window-navigator version File versions  Download package

def awnPreferences::awnPreferences::setup_chooser (   self,
  key,
  chooser 
)

sets up png choosers

Definition at line 225 of file awnPreferences.py.

00225                                          :
        """sets up png choosers"""
        fil = gtk.FileFilter()
        fil.set_name("PNG Files")
        fil.add_pattern("*.png")
        fil.add_pattern("*.PNG")
        chooser.add_filter(fil)
        preview = gtk.Image()
        chooser.set_preview_widget(preview)
        chooser.connect("update-preview", self.update_preview, preview)
        try:
            file = self.client.get_string(key)
            if os.path.exists(file):
                chooser.set_uri(file)
            else:
                self.client.set_string(key, "~")
        except TypeError:
            raise "\nKey: "+key+" isn't set.\nRestarting AWN usually solves this issue\n"
        chooser.connect("selection-changed", self.chooser_changed, key)

    def chooser_changed(self, chooser, key):


Generated by  Doxygen 1.6.0   Back to index