(self)
Update the list of profiles
Update the list of profiles
Update the list of profiles
def update_profiles(self):
        """Update the list of profiles"""
        self.profile_ids_to_profile = {}
        self.profile_profile_to_ids= {}
        chooser = self.builder.get_object('layout_profile_chooser')

        profiles = self.config.list_profiles()
        profiles.sort()
        i = 0
        for profile in profiles:
            self.profile_ids_to_profile[i] = profile
            self.profile_profile_to_ids[profile] = i
            chooser.append_text(profile)
            i = i + 1
def update_profiles ( self ) : self . profile_ids_to_profile = { } self . profile_profile_to_ids = { } chooser = self . builder . get_object ( 'layout_profile_chooser' ) profiles = self . config . list_profiles ( ) profiles . sort ( ) i = 0 for profile in profiles : self . profile_ids_to_profile [ i ] = profile self . profile_profile_to_ids [ profile ] = i chooser . append_text ( profile ) i = i + 1