Changeset 152:702bc0eb2ac3


Ignore:
Timestamp:
Sep 3, 2009, 8:55:12 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@153
Message:

Fix Toolbar width to TOOLBAR_WIDTH by not allowing it to resize.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r151 r152  
    9393        self.td(label, align=-1, width=self.rect.w/2)
    9494
     95    def resize(self, width=None, height=None):
     96        width, height = gui.Table.resize(self, width, height)
     97        width = GameBoard.TOOLBAR_WIDTH
     98        return width, height
     99
     100
    95101class VidWidget(gui.Widget):
    96102    def __init__(self, gameboard, vid, **params):
     
    155161        self.toolbar = ToolBar(self, width=self.TOOLBAR_WIDTH)
    156162        tbl.td(self.toolbar, valign=-1)
    157         self.tvw = VidWidget(self, self.tv, width=width-self.TOOLBAR_WIDTH-19, height=height)
     163        self.tvw = VidWidget(self, self.tv, width=width-self.TOOLBAR_WIDTH, height=height)
    158164        tbl.td(self.tvw)
    159165        self.top_widget = tbl
Note: See TracChangeset for help on using the changeset viewer.