Changeset 50:19d4098081e8 for src/mlx


Ignore:
Timestamp:
03/25/12 11:52:51 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added environment variable to display the more natural size of the window

Location:
src/mlx/gui
Files:
2 edited

Legend:

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

    r49 r50  
    5151        alignment = gtk.Alignment(xalign = 0.5, yalign = 0.0,
    5252                                  xscale = 0, yscale = 0.0)
     53        alignment.set_padding(padding_top = 0, padding_bottom = 16,
     54                              padding_left = 0, padding_right = 0)
    5355
    5456        label = gtk.Label(help)
  • src/mlx/gui/gui.py

    r49 r50  
    7979        notebook.append_page(self._wizard, label)
    8080
     81
    8182        dataVBox = gtk.VBox()
    8283        label = gtk.Label("_Data")
    8384        label.set_use_underline(True)
    8485        label.set_tooltip_text("FSUIPC data access")
    85         notebook.append_page(dataVBox, label)
     86
     87        if "USE_SCROLLEDDATA" in os.environ:
     88            dataScrolledWindow = gtk.ScrolledWindow()
     89            dataScrolledWindow.add_with_viewport(dataVBox)
     90            notebook.append_page(dataScrolledWindow, label)
     91        else:
     92            notebook.append_page(dataVBox, label)
    8693
    8794        setupFrame = self._buildSetupFrame()
Note: See TracChangeset for help on using the changeset viewer.