(self)
Delete selected Items
Delete selected Items
Delete selected Items
def delete_items(self):
        """ Delete selected Items
        """
        model = self.list_view.model()

        index = self.list_view.selectionModel().currentIndex().row()
        if index != -1:
            ptr = model.item(index, 0).text()
            self.remove_address(ptr)
def delete_items ( self ) : model = self . list_view . model ( ) index = self . list_view . selectionModel ( ) . currentIndex ( ) . row ( ) if index != - 1 : ptr = model . item ( index , 0 ) . text ( ) self . remove_address ( ptr )