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

def lekhonee-gnome::LekhoneeGTK::selectBttn_cb (   self,
  widget 
)

To handle selectBttn callback

Definition at line 607 of file lekhonee-gnome.py.

00607                                    :
        """
        To handle selectBttn callback
        """
        dialog = gtk.FileChooserDialog("Open..",None,
                gtk.FILE_CHOOSER_ACTION_OPEN,
                buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK))
        dialog.set_default_response(gtk.RESPONSE_OK)

        filter = gtk.FileFilter()
        filter.set_name("Po files")
        filter.add_pattern("*.po")
        dialog.add_filter(filter)

        response = dialog.run()
        if response == gtk.RESPONSE_OK:
            filename = dialog.get_filename()
            self.filepath.set_text(filename)
        dialog.destroy()


    def addBttn_cb(self, widget):


Generated by  Doxygen 1.6.0   Back to index