Ignore:
Timestamp:
07/04/19 17:57:45 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Using 'Gtk' instead of 'gtk' (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/bugreport.py

    r954 r996  
    1818#------------------------------------------------------------------------------
    1919
    20 class BugReportDialog(gtk.Dialog):
     20class BugReportDialog(Gtk.Dialog):
    2121    """The dialog to report a bug."""
    2222    def __init__(self, gui):
     
    3333        contentArea = self.get_content_area()
    3434
    35         contentAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     35        contentAlignment = Gtk.Alignment(xalign = 0.5, yalign = 0.5,
    3636                                         xscale = 0.0, yscale = 0.0)
    3737        contentAlignment.set_padding(padding_top = 4, padding_bottom = 16,
     
    4040        contentArea.pack_start(contentAlignment, False, False, 0)
    4141
    42         contentVBox = gtk.VBox()
     42        contentVBox = Gtk.VBox()
    4343        contentAlignment.add(contentVBox)
    4444
    45         label = gtk.Label(xstr("bugreport_summary"))
     45        label = Gtk.Label(xstr("bugreport_summary"))
    4646        label.set_use_underline(True)
    4747        label.set_alignment(0.0, 0.5)
     
    4949        contentVBox.pack_start(label, False, False, 4)
    5050
    51         self._summary = summary = gtk.Entry()
     51        self._summary = summary = Gtk.Entry()
    5252        summary.connect("changed", self._summaryChanged)
    5353        summary.set_tooltip_text(xstr("bugreport_summary_tooltip"))
     
    5656        contentVBox.pack_start(summary, True, True, 4)
    5757
    58         label = gtk.Label(xstr("bugreport_description"))
     58        label = Gtk.Label(xstr("bugreport_description"))
    5959        label.set_use_underline(True)
    6060        label.set_alignment(0.0, 0.5)
     
    6262        contentVBox.pack_start(label, False, False, 4)
    6363
    64         self._description = description = gtk.TextView()
     64        self._description = description = Gtk.TextView()
    6565        description.set_tooltip_text(xstr("bugreport_description_tooltip"))
    6666        description.set_wrap_mode(WRAP_WORD)
    6767        label.set_mnemonic_widget(description)
    6868
    69         scrolledWindow = gtk.ScrolledWindow()
     69        scrolledWindow = Gtk.ScrolledWindow()
    7070        scrolledWindow.add(description)
    7171        scrolledWindow.set_size_request(-1, 200)
     
    7373        scrolledWindow.set_shadow_type(SHADOW_IN)
    7474
    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)
    7676        alignment.add(scrolledWindow)
    7777
    7878        contentVBox.pack_start(alignment, True, True, 4)
    7979
    80         emailBox = gtk.HBox()
     80        emailBox = Gtk.HBox()
    8181        contentVBox.pack_start(emailBox, False, False, 4)
    8282
    83         label = gtk.Label(xstr("bugreport_email"))
     83        label = Gtk.Label(xstr("bugreport_email"))
    8484        label.set_use_underline(True)
    8585        label.set_alignment(0.0, 0.5)
     
    8787        emailBox.pack_start(label, False, False, 0)
    8888
    89         alignment = gtk.Alignment()
     89        alignment = Gtk.Alignment()
    9090        emailBox.pack_start(alignment, False, False, 8)
    9191
    92         self._email = email = gtk.Entry()
     92        self._email = email = Gtk.Entry()
    9393        email.set_tooltip_text(xstr("bugreport_email_tooltip"))
    9494        label.set_mnemonic_widget(email)
Note: See TracChangeset for help on using the changeset viewer.