Mercurial > fife-parpg
changeset 439:cfc7c384603b
- fixed credits gui (path to AUTHORS file wasn't corrected after the buildsystem release)
NOTE:
- I also had to set min/max size for the ScrollArea, otherwise the content wouldn't be displayed
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 02 Mar 2010 12:05:35 +0000 |
parents | db994c01cc9a |
children | 3a6441d9e01c |
files | demos/pychan_demo/gui/credits.xml demos/pychan_demo/pychan_test.py |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/demos/pychan_demo/gui/credits.xml Tue Mar 02 11:49:27 2010 +0000 +++ b/demos/pychan_demo/gui/credits.xml Tue Mar 02 12:05:35 2010 +0000 @@ -1,10 +1,10 @@ -<Window title="Credits."> +<Window title="Credits." size="500,500"> <Label text="These guys contributed to FIFE. Man!" /> - <ScrollArea size="400,400" vertical_scrollbar="0"> - <TextBox name="creditText" filename="../../doc/AUTHORS"/> + <ScrollArea min_size="400,400" max_size="400,400" size="400,400" vertical_scrollbar="0"> + <TextBox name="creditText" filename="../../AUTHORS"/> </ScrollArea> <HBox> <Spacer /> <Button name="okButton" text="You guys rock!"/> </HBox> -</Window> \ No newline at end of file +</Window>
--- a/demos/pychan_demo/pychan_test.py Tue Mar 02 11:49:27 2010 +0000 +++ b/demos/pychan_demo/pychan_test.py Tue Mar 02 12:05:35 2010 +0000 @@ -112,6 +112,7 @@ from dynamic import DynamicExample from styling import StylingExample from sliders import SliderExample + from colortester import ColorExample self.examples = { 'Absolute Positioning' : PyChanExample('gui/absolute.xml'), 'All Widgets' : PyChanExample('gui/all_widgets.xml'), @@ -119,6 +120,7 @@ 'Dynamic Widgets' : DynamicExample(), 'Sliders' : SliderExample(), 'ScrollArea' : PyChanExample('gui/scrollarea.xml'), + 'Colortester': ColorExample(), } self.demoList = self.gui.findChild(name='demoList') self.demoList.items = sorted(self.examples.keys())