def add_select_num_beats_gui(self):
###
hbox = Gtk.HBox()
hbox.set_spacing(gu.hig.SPACE_SMALL)
label = Gtk.Label(label=_("Number of beats in question:"))
hbox.pack_start(label, False, False, 0)
self.config_box_sizegroup.add_widget(label)
label.set_alignment(1.0, 0.5)
hbox.pack_start(gu.nSpinButton(self.m_exname, "num_beats",
Gtk.Adjustment(4, 1, 100, 1, 10)), False, False, 0)
self.config_box.pack_start(hbox, False, False, 0)
hbox.show_all()
#
hbox = Gtk.HBox()
hbox.set_spacing(gu.hig.SPACE_SMALL)
label = Gtk.Label(label=_("Count in before question:"))
hbox.pack_start(label, False, False, 0)
self.config_box_sizegroup.add_widget(label)
label.set_alignment(1.0, 0.5)
hbox.pack_start(gu.nSpinButton(self.m_exname, "count_in",
Gtk.Adjustment(2, 0, 10, 1, 10)), False, False, 0)
hbox.show_all()
self.config_box.pack_start(hbox, False, False, 0)
评论列表
文章目录