Changeset 1075:98d4c4481dd6 for src


Ignore:
Timestamp:
02/14/23 14:30:24 (14 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The flight wizard pages have new callback functions to prepare for showing/hiding them.

File:
1 edited

Legend:

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

    r1071 r1075  
    240240        pass
    241241
     242    def prepareShow(self):
     243        """Prepare the page for showing, either initially on when later
     244        returned to."""
     245        pass
     246
    242247    def setHelp(self, help):
    243248        """Set the help string."""
     
    266271        if self._defaultButton is not None:
    267272            self._defaultButton.grab_default()
     273
     274    def prepareHide(self):
     275        """Prepare the page for hiding, either initially on when later
     276        the user returned to it and then navigates away from it."""
     277        pass
    268278
    269279    def reset(self):
     
    59305940            if finalize and not page._completed:
    59315941                page.complete()
     5942            page.prepareHide()
    59325943            self.remove(page)
    59335944            if fromPageShift is not None:
     
    59405951            page._fromPage = fromPage
    59415952            page.initialize()
     5953        page.prepareShow()
    59425954        self.show_all()
    59435955        if fromPage is not None:
Note: See TracChangeset for help on using the changeset viewer.