Ignore:
Timestamp:
06/04/12 09:53:04 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The Data tab of the PIREP viewer works

Location:
src/mlx/gui
Files:
1 added
2 edited

Legend:

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

    r191 r220  
    5353
    5454    SELECTION_MULTIPLE = gtk.SELECTION_MULTIPLE
     55
     56    SHADOW_IN = gtk.SHADOW_IN
     57
     58    POLICY_AUTOMATIC = gtk.POLICY_AUTOMATIC
    5559
    5660    def text2unicode(text):
     
    97101    SELECTION_MULTIPLE = gtk.SelectionMode.MULTIPLE
    98102
     103    SHADOW_IN = gtk.ShadowType.IN
     104
     105    POLICY_AUTOMATIC = gtk.PolicyType.AUTOMATIC
     106
    99107    import codecs
    100108    _utf8Decoder = codecs.getdecoder("utf-8")
  • src/mlx/gui/gui.py

    r215 r220  
    1212from mlx.gui.prefs import Preferences
    1313from mlx.gui.checklist import ChecklistEditor
     14from mlx.gui.pirep import PIREPViewer
    1415
    1516import mlx.const as const
     
    144145        self._monitorWindowY = None
    145146        self._selfToggling = False
     147
     148        self._pirepViewer = PIREPViewer(self)
    146149
    147150        window.show_all()
     
    10061009                if result==RESPONSETYPE_OK:
    10071010                    self.sendPIREP(pirep)
     1011                elif result==1:
     1012                    self._pirepViewer.setPIREP(pirep)
     1013                    self._pirepViewer.show_all()
     1014                    self._pirepViewer.run()
     1015                    self._pirepViewer.hide()
    10081016
    10091017    def _getLoadPirepDialog(self):
     
    11381146
    11391147        dialog.add_button(xstr("button_cancel"), RESPONSETYPE_REJECT)
     1148        dialog.add_button(xstr("viewPIREP"), 1)
    11401149        dialog.add_button(xstr("sendPIREP"), RESPONSETYPE_OK)
    11411150       
Note: See TracChangeset for help on using the changeset viewer.