def __init__(self, tviews, uicore):
super(RightCombo,self).__init__(1, 7, False)
self.tviews = tviews
self.uicore = uicore
# Theme Label
self.theme_label = Gtk.Label(label='Color theme:')
self.attach(self.theme_label, 0, 1, 0, 1)
# Theme ComboBox
self.theme_combo = Gtk.ComboBoxText()
options = ['Classic', 'Cobalt', 'kate', 'Oblivion', 'Tango']
for option in options:
self.theme_combo.append_text(option)
# Set first by default
self.theme_combo.set_active(0)
self.theme_combo.connect("changed", self.theme_combo_change)
self.attach(self.theme_combo, 1, 2, 0, 1)
评论列表
文章目录