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

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

Save the current blog entry to disk

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

00234                              :
        """
        Save the current blog entry to disk
        """
        if self.filename != '':
            self.save()
            return True

        chooser = gtk.FileChooserDialog(title='Save Blog',action=gtk.FILE_CHOOSER_ACTION_SAVE,
            buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_SAVE,gtk.RESPONSE_OK))
        filter = gtk.FileFilter()
        filter.set_name("Lekhonee files")
        filter.add_pattern("*.chotha")
        chooser.add_filter(filter)
        response = chooser.run()

        if  response == gtk.RESPONSE_OK:
            self.filename = chooser.get_filename()
            self.save()
        chooser.destroy()

    def save(self):


Generated by  Doxygen 1.6.0   Back to index