Changeset 996:8035d80d5feb for src/mlx/gui/bugreport.py
- Timestamp:
- 07/04/19 17:57:45 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/bugreport.py
r954 r996 18 18 #------------------------------------------------------------------------------ 19 19 20 class BugReportDialog( gtk.Dialog):20 class BugReportDialog(Gtk.Dialog): 21 21 """The dialog to report a bug.""" 22 22 def __init__(self, gui): … … 33 33 contentArea = self.get_content_area() 34 34 35 contentAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,35 contentAlignment = Gtk.Alignment(xalign = 0.5, yalign = 0.5, 36 36 xscale = 0.0, yscale = 0.0) 37 37 contentAlignment.set_padding(padding_top = 4, padding_bottom = 16, … … 40 40 contentArea.pack_start(contentAlignment, False, False, 0) 41 41 42 contentVBox = gtk.VBox()42 contentVBox = Gtk.VBox() 43 43 contentAlignment.add(contentVBox) 44 44 45 label = gtk.Label(xstr("bugreport_summary"))45 label = Gtk.Label(xstr("bugreport_summary")) 46 46 label.set_use_underline(True) 47 47 label.set_alignment(0.0, 0.5) … … 49 49 contentVBox.pack_start(label, False, False, 4) 50 50 51 self._summary = summary = gtk.Entry()51 self._summary = summary = Gtk.Entry() 52 52 summary.connect("changed", self._summaryChanged) 53 53 summary.set_tooltip_text(xstr("bugreport_summary_tooltip")) … … 56 56 contentVBox.pack_start(summary, True, True, 4) 57 57 58 label = gtk.Label(xstr("bugreport_description"))58 label = Gtk.Label(xstr("bugreport_description")) 59 59 label.set_use_underline(True) 60 60 label.set_alignment(0.0, 0.5) … … 62 62 contentVBox.pack_start(label, False, False, 4) 63 63 64 self._description = description = gtk.TextView()64 self._description = description = Gtk.TextView() 65 65 description.set_tooltip_text(xstr("bugreport_description_tooltip")) 66 66 description.set_wrap_mode(WRAP_WORD) 67 67 label.set_mnemonic_widget(description) 68 68 69 scrolledWindow = gtk.ScrolledWindow()69 scrolledWindow = Gtk.ScrolledWindow() 70 70 scrolledWindow.add(description) 71 71 scrolledWindow.set_size_request(-1, 200) … … 73 73 scrolledWindow.set_shadow_type(SHADOW_IN) 74 74 75 alignment = gtk.Alignment(xalign = 0.5, yalign = 0.0, xscale = 1.0, yscale = 1.0)75 alignment = Gtk.Alignment(xalign = 0.5, yalign = 0.0, xscale = 1.0, yscale = 1.0) 76 76 alignment.add(scrolledWindow) 77 77 78 78 contentVBox.pack_start(alignment, True, True, 4) 79 79 80 emailBox = gtk.HBox()80 emailBox = Gtk.HBox() 81 81 contentVBox.pack_start(emailBox, False, False, 4) 82 82 83 label = gtk.Label(xstr("bugreport_email"))83 label = Gtk.Label(xstr("bugreport_email")) 84 84 label.set_use_underline(True) 85 85 label.set_alignment(0.0, 0.5) … … 87 87 emailBox.pack_start(label, False, False, 0) 88 88 89 alignment = gtk.Alignment()89 alignment = Gtk.Alignment() 90 90 emailBox.pack_start(alignment, False, False, 8) 91 91 92 self._email = email = gtk.Entry()92 self._email = email = Gtk.Entry() 93 93 email.set_tooltip_text(xstr("bugreport_email_tooltip")) 94 94 label.set_mnemonic_widget(email)
Note:
See TracChangeset
for help on using the changeset viewer.