Example #1
0
 def set_language_choices(self, choices, choice_map):
     BaseFrontend.set_language_choices(self, choices, choice_map)
     self.userinterface.language_list.clear()
     self.lang_store = QStringList()
     for choice in choices:
         self.lang_store.append(QString(choice))
     self.userinterface.language_list.addItems(self.lang_store)
Example #2
0
 def set_language_choices(self, choices, choice_map):
     BaseFrontend.set_language_choices(self, choices, choice_map)
     self.language_iconview.connect(
         'selection-changed', self.on_language_iconview_selection_changed)
     list_store = gtk.ListStore(gobject.TYPE_STRING)
     self.language_iconview.set_model(list_store)
     self.language_iconview.set_text_column(0)
     for choice in choices:
         list_store.append([choice])
Example #3
0
 def set_language_choices(self, choices, choice_map):
     BaseFrontend.set_language_choices(self, choices, choice_map)
     self.language_iconview.connect('selection-changed',
                       self.on_language_iconview_selection_changed)
     list_store = gtk.ListStore(gobject.TYPE_STRING)
     self.language_iconview.set_model(list_store)
     self.language_iconview.set_text_column(0)
     for choice in choices:
         list_store.append([choice])