Changeset 992:6dcd4236af57 for src/mlx/gui
- Timestamp:
- 07/02/19 18:36:34 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r990 r992 5475 5475 5476 5476 self._initialize() 5477 self._allocateSize() 5477 5478 5478 5479 def _sizeAllocate(self, widget, allocation): … … 5480 5481 self._requestedHeight is not None: 5481 5482 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.""" 5482 5491 5483 5492 if self._currentPage is not None: … … 5499 5508 self.add(self._pages[self._currentPage]) 5500 5509 5501 self._requestedWidth = maxWidth5502 self._requestedHeight = maxHeight5503 5510 self.set_size_request(maxWidth, maxHeight) 5511 5512 return (maxWidth, maxHeight) 5504 5513 5505 5514 @property
Note:
See TracChangeset
for help on using the changeset viewer.