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

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

Select a file to upload

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

00190                                    :
        """
        Select a file to upload
        """
        chooser = gtk.FileChooserDialog(title='Upload File',action=gtk.FILE_CHOOSER_ACTION_OPEN,
            buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK))
        response = chooser.run()

        if  response == gtk.RESPONSE_OK:
            filename = chooser.get_filename()
            self.fileTxt.set_text(filename)

        chooser.destroy()

    def uploadFile_cb(self, widget):


Generated by  Doxygen 1.6.0   Back to index