(self, widget, event)
return(False)
replace Gtk.Entry by the Gtk.Label
replace Gtk.Entry by the Gtk.Label
replace Gtk . Entry by the Gtk . Label
def _entry_to_label (self, widget, event):
        # pylint: disable-msg=W0613
        """replace Gtk.Entry by the Gtk.Label"""
        if self._entry and self._entry in self.get_children():
            #disconnect signals to avoid segfault :s
            for sig in self._entry_handler_id:
                if self._entry.handler_is_connected(sig):
                    self._entry.disconnect(sig)
            self._entry_handler_id = []
            self.remove (self._entry)
            self.add (self._label)
            self._entry = None
            self.show_all ()
            self.emit('edit-done')
            return(True)
        return(False)
def _entry_to_label ( self , widget , event ) : # pylint: disable-msg=W0613 if self . _entry and self . _entry in self . get_children ( ) : #disconnect signals to avoid segfault :s for sig in self . _entry_handler_id : if self . _entry . handler_is_connected ( sig ) : self . _entry . disconnect ( sig ) self . _entry_handler_id = [ ] self . remove ( self . _entry ) self . add ( self . _label ) self . _entry = None self . show_all ( ) self . emit ( 'edit-done' ) return ( True ) return ( False )