Changeset 992:6dcd4236af57


Ignore:
Timestamp:
07/02/19 18:36:34 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The size of the flight wizard is computed earlier to avoid resizing on startup (re #347)

File:
1 edited

Legend:

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

    r990 r992  
    54755475
    54765476        self._initialize()
     5477        self._allocateSize()
    54775478
    54785479    def _sizeAllocate(self, widget, allocation):
     
    54805481           self._requestedHeight is not None:
    54815482           return
     5483
     5484        (maxWidth, maxHeight) = self._allocateSize()
     5485
     5486        self._requestedWidth = maxWidth
     5487        self._requestedHeight = maxHeight
     5488
     5489    def _allocateSize(self):
     5490        """Perform the real size allocation."""
    54825491
    54835492        if self._currentPage is not None:
     
    54995508            self.add(self._pages[self._currentPage])
    55005509
    5501         self._requestedWidth = maxWidth
    5502         self._requestedHeight = maxHeight
    55035510        self.set_size_request(maxWidth, maxHeight)
     5511
     5512        return (maxWidth, maxHeight)
    55045513
    55055514    @property
Note: See TracChangeset for help on using the changeset viewer.