(self)
Delete an ending character
Delete an ending character
Delete an ending character
def delete(self):
        """Delete an ending character"""
        self.y, _ = self.search_window.getyx()
        if len(self.query) > 0:
            self.search_window.move(self.y, len(self.query) - 1)
        self.search_window.delch()
        self.query = self.query[:-1]
def delete ( self ) : self . y , _ = self . search_window . getyx ( ) if len ( self . query ) > 0 : self . search_window . move ( self . y , len ( self . query ) - 1 ) self . search_window . delch ( ) self . query = self . query [ : - 1 ]