Mercurial > fife-parpg
view clients/pychan_demo/gui/demoapp.xml @ 148:72c25cc27d8b
For your convenience pools now have a function
called purgeLoadedResources exposed to python
which will delete all loaded resources that
have a ref count of zero.
You can use this after closing a map or something
alike. It may however impact performance, as
the next map may very well reload the same resources.
Just be aware of that. :-)
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 11 Oct 2008 06:05:11 +0000 |
parents | fe7ff4808529 |
children | 756b895e1dab |
line wrap: on
line source
<Window title="This is the PyChan demo application."> <HBox> <Slider size="100,15" name="slider" orientation="0" scale_start="0.1" scale_end="1.5" base_color="93,161,102" /> <Label name="slider_desc" text="Move the slider!" /> <TextBox name="slider_value" text="0" base_color="0,0,0,0"/> </HBox> <VBox> <HBox> <ScrollArea size="200,500"> <ListBox name="demoList" min_size="100,100" /> </ScrollArea> <VBox margins="0,0"> <Label text=" Select one example from the listbox and press 'Start Example'"/> <Label text=" You can also execute this script with an Gui XML file as argument."/> <HBox margins="0,0"> <Button text="XML code"/> </HBox> <ScrollArea size="600,200"> <TextBox name="xmlSource" filename="gui/all_widgets.xml"/> </ScrollArea> <Spacer /> </VBox> </HBox> <HBox> <ClickLabel name="creditsLink" text="Credits"/> <Spacer /> <Button name="closeButton" text="Quit Demo"/> </HBox> </VBox> </Window>