def _create_select_inputwidget_gui(self):
"""
This will be called by HarmonicInterval and MelodicInterval
constructor
"""
hbox = gu.bHBox(self.config_box, False)
hbox.set_spacing(gu.PAD_SMALL)
gu.bLabel(hbox, _("Input interface:"), False)
combo = Gtk.ComboBoxText()
for i in range(len(inputwidgets.inputwidget_names)):
combo.append_text(inputwidgets.inputwidget_names[i])
if self.get_int('inputwidget') < len(inputwidgets.inputwidget_names):
combo.set_active(self.get_int('inputwidget'))
else:
combo.set_active(0)
combo.connect('changed', lambda w: self.use_inputwidget(w.get_active()))
hbox.pack_start(combo, False, False, 0)
self.g_disable_unused_buttons = gu.nCheckButton(self.m_exname,
'disable_unused_intervals', _("_Disable unused buttons"))
hbox.pack_start(self.g_disable_unused_buttons, True, True, 0)
评论列表
文章目录