Changeset 556:07248b9b9899
- Timestamp:
- 02/01/14 12:28:17 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r555 r556 105 105 longerHelp = completedHelp 106 106 107 self._helpLabel = gtk.Label( completedHelp)107 self._helpLabel = gtk.Label(longerHelp) 108 108 # FIXME: should be a constant in common 109 109 self._helpLabel.set_justify(gtk.Justification.CENTER if pygobject … … 2814 2814 xscale = 0.0, yscale = 0.0) 2815 2815 2816 table = gtk.Table( 8, 2)2816 table = gtk.Table(10, 2) 2817 2817 table.set_row_spacings(4) 2818 2818 table.set_col_spacings(16) … … 2845 2845 labelAlignment = gtk.Alignment(xalign=0.0, xscale=0.0) 2846 2846 self._depTime = gtk.Label() 2847 self._depTime.set_width_chars(1 0)2847 self._depTime.set_width_chars(13) 2848 2848 self._depTime.set_alignment(0.0, 0.5) 2849 2849 self._depTime.set_use_markup(True) … … 2890 2890 labelAlignment = gtk.Alignment(xalign=0.0, xscale=0.0) 2891 2891 self._arrTime = gtk.Label() 2892 self._arrTime.set_width_chars(1 0)2892 self._arrTime.set_width_chars(13) 2893 2893 self._arrTime.set_alignment(0.0, 0.5) 2894 2894 self._arrTime.set_use_markup(True) … … 3381 3381 self._pages.append(self._finishPage) 3382 3382 3383 self._requestedWidth = None 3384 self._requestedHeight = None 3385 3386 self.connect("size-allocate", self._sizeAllocate) 3387 3388 for page in self._pages: 3389 page.show_all() 3390 page.setStyle() 3391 3392 self._initialize() 3393 3394 def _sizeAllocate(self, widget, allocation): 3395 if self._requestedWidth is not None and \ 3396 self._requestedHeight is not None: 3397 return 3398 3399 if self._currentPage is not None: 3400 self.remove(self._pages[self._currentPage]) 3401 3383 3402 maxWidth = 0 3384 3403 maxHeight = 0 3385 3404 for page in self._pages: 3386 page.show_all() 3405 self.add(page) 3406 self.show_all() 3387 3407 pageSizeRequest = page.size_request() 3388 3408 width = pageSizeRequest.width if pygobject else pageSizeRequest[0] … … 3390 3410 maxWidth = max(maxWidth, width) 3391 3411 maxHeight = max(maxHeight, height) 3392 page.setStyle() 3393 maxWidth += 16 3394 maxHeight += 32 3412 self.remove(page) 3413 3414 if self._currentPage is not None: 3415 self.add(self._pages[self._currentPage]) 3416 3417 self._requestedWidth = maxWidth 3418 self._requestedHeight = maxHeight 3395 3419 self.set_size_request(maxWidth, maxHeight) 3396 3397 self._initialize()3398 3420 3399 3421 @property
Note:
See TracChangeset
for help on using the changeset viewer.