def __init__(self, parent, error_text):
Gtk.Dialog.__init__(self, _("Make bug report"), parent,
buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.REJECT))
self.m_error_text = error_text
self.add_button(_("_Send"), RESPONSE_SEND)
self.set_default_size(400, 400)
sizegroup = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
l = Gtk.Label(_("Information about the version of GNU Solfege, your operating system and Python version, and the Python traceback (error message) will be sent to the crash database. Your email will not be published or shared, but we might contact you by email if we have further questions about your crash report."))
l.set_line_wrap(True)
l.show()
self.vbox.pack_start(l, False, False, 0)
self.g_email = Gtk.Entry()
self.vbox.pack_start(
gu.hig_label_widget(_("_Email:"), self.g_email, sizegroup),
False, False, 0)
self.g_email.set_text(cfg.get_string('user/email'))
# 140 is max in the solfege.org database
self.g_description = Gtk.Entry()
self.g_description.set_max_length(140)
self.vbox.pack_start(
gu.hig_label_widget(_("S_hort description:"), self.g_description,
sizegroup), False, False, 0)
label = Gtk.Label(label=_("_Describe how to produce the error message:"))
label.set_use_underline(True)
label.set_alignment(0.0, 0.5)
self.vbox.pack_start(label, False, False, 0)
self.g_tw = Gtk.TextView()
self.g_tw.set_wrap_mode(Gtk.WrapMode.WORD)
self.g_tw.set_border_width(10)
label.set_mnemonic_widget(self.g_tw)
self.vbox.pack_start(self.g_tw, True, True, 0)
self.show_all()
评论列表
文章目录