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

def lekhonee-gnome::LekhoneeGTK::link_dialog_cb (   self,
  widget,
  response_id 
)

Get the link

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

00431                                                  :
        """
        Get the link
        """
        self.linkDialog.hide()
        if response_id == gtk.RESPONSE_OK:
            link = self.linkTxt.get_text()
            if link:
                iter = self.blogTxt.get_selection_bounds()
                if iter:
                    text =  self.blogTxt.get_text(iter[0],iter[1])
                    self.blogTxt.delete(iter[0],iter[1])
                else:
                    text = ''
                self.blogTxt.insert_at_cursor('<a href="'+link+'">'+text+'</a>')
            self.linkTxt.set_text('')

    def image_dialog_cb(self, widget, response_id):


Generated by  Doxygen 1.6.0   Back to index