'Get the value for setting key'

def get_setting(self, name_group, key, format=str):

    self.psettings.beginGroup(name_group)
    value = self.psettings.value(key, type=format)
    self.closeGroup()
    return value
