'remove rules from Listwidget in settings widget'

def unset_Rules(self, type):

    items = []
    for index in xrange(self.FSettings.ListRules.count()):
        items.append(str(self.FSettings.ListRules.item(index).text()))
    for (position, line) in enumerate(items):
        if (self.optionsRules(type) == line):
            self.FSettings.ListRules.takeItem(position)
