def create_mainwin_ui(self):
qbox = gu.hig_dlg_vbox()
self.g_notebook.append_page(qbox, Gtk.Label(label=_("Questions")))
gu.bLabel(qbox, _("Enter new chords using the mouse"), False, False)
hbox = gu.bHBox(qbox, False, False)
self.g_displayer = mpd.musicdisplayer.ChordEditor()
self.g_displayer.connect('clicked', self.on_displayer_clicked)
self.g_displayer.clear(2)
gu.bLabel(hbox, "")
hbox.pack_start(self.g_displayer, False)
gu.bLabel(hbox, "")
##
self.g_question_name = Gtk.Entry()
qbox.pack_start(gu.hig_label_widget(_("Question title:", True, True, 0), self.g_question_name, None), False)
self.g_navinfo = Gtk.Label(label="")
qbox.pack_start(self.g_navinfo, False)
##
self.m_P = EditorLessonfile()
cvbox = Gtk.VBox()
self.g_notebook.append_page(cvbox, Gtk.Label(label=_("Lessonfile header")))
## Header section
sizegroup = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
self.g_title = Gtk.Entry()
cvbox.pack_start(gu.hig_label_widget(_("File title:", True, True, 0), self.g_title,
sizegroup))
self.g_content_chord = Gtk.RadioButton(None, "chord")
self.g_content_chord_voicing = Gtk.RadioButton(self.g_content_chord, "chord-voicing")
self.g_content_idbyname = Gtk.RadioButton(self.g_content_chord, "id-by-name")
box = Gtk.HBox()
box.pack_start(self.g_content_chord, True, True, 0)
box.pack_start(self.g_content_chord_voicing, True, True, 0)
box.pack_start(self.g_content_idbyname, True, True, 0)
cvbox.pack_start(gu.hig_label_widget(_("Content:", True, True, 0), box, sizegroup))
self.g_random_transpose = Gtk.Entry()
cvbox.pack_start(gu.hig_label_widget(_("Random transpose:", True, True, 0),
self.g_random_transpose, sizegroup))
#
#self.g_statusbar = Gtk.Statusbar()
#self.toplevel_vbox.pack_start(self.g_statusbar, False)
self.update_appwin()
评论列表
文章目录