Changeset 47:004e3163bdd8 for src/mlx


Ignore:
Timestamp:
03/18/12 19:20:03 (13 years ago)
Author:
István Váradi <locvais@…>
Branch:
default
Phase:
public
Message:

Still further enhancements

File:
1 edited

Legend:

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

    r46 r47  
    377377        setupBox.pack_start(gtk.VSeparator(), False, False, 8)   
    378378
    379         self._connectButton = gtk.ToggleButton(label = "Connect")
     379        self._connectButton = gtk.ToggleButton(label = "_Connect",
     380                                               use_underline = True)
    380381        self._connectButton.set_tooltip_text("Push to connect to Flight Simulator and start a new flight.\n"
    381382                                             "Push again to disconnect from FS.")
     383        self._connectButton.set_can_default(True)
    382384       
    383385        self._connectButton.connect("toggled", self._connectToggled)
     
    388390
    389391        self._quitButton = gtk.Button(label = "_Quit", use_underline = True)
    390         self._quitButton.set_can_default(True)
    391392        self._quitButton.set_tooltip_text("Quit the program.")
    392393       
     
    726727            self._wizard.grabDefault()
    727728        elif page_num==1:
    728             self._quitButton.grab_default()
     729            self._connectButton.grab_default()
    729730        else:
    730731            self._mainWindow.set_default(None)
Note: See TracChangeset for help on using the changeset viewer.