All pastes #1466199 Raw Edit

PARPG r150

public text v1 · immutable
#1466199 ·published 2009-06-19 11:45 UTC
rendered paste body
<Container position_technique="center:bottom" name="mainHudWindow">
    <Button text="Menu" name="menuButton" max_size="200,15" position="5,5">
    </Button>
    <Button text="Save" name="saveButton" max_size="200,15" position="6,25">
    </Button>
    <Button text="Load" name="loadButton" max_size="200,15" position="6,45">
    </Button>
    <Label text="HP: 100" name="healthPoints" position="56,14">
    </Label>
    <Label text="AP: 100" name="actionPoints" position="56,34">
    </Label>
    <Label text="AC: 100" name="armorClass" position="106,14">
    </Label>
    <Label text="Temp: 100" name="tempGauge" position="106,34">
    </Label>
    <ImageButton name="hudReady1">
    </ImageButton>
    <ImageButton name="hudReady2">
    </ImageButton>
    <ScrollArea horizontal_scrollbar="0" name="actionsScrollArea" vertical_scrollbar="1">
        <ListBox name="actionsBox">
        </ListBox>
    </ScrollArea>
    <ImageButton name="hudReady3">
    </ImageButton>
    <ImageButton name="hudReady4">
    </ImageButton>
    <ToggleButton down_image="gui/inv_images/inv_backpack_open.png" up_image="gui/inv_images/inv_backpack.png" name="inventoryButton" hover_image="gui/inv_images/inv_backpack.png">
    </ToggleButton>
</Container>
Attach: <pychan.events._ActionEventListener; proxy of <Swig Object of type 'gcn::ActionListener *' at 0x182fae0> >
Attach: <pychan.events._ActionEventListener; proxy of <Swig Object of type 'gcn::ActionListener *' at 0x182fae0> >
<Container position_technique="center:center" size="145,153">
    <Button text="Resume Game" name="resumeButton" max_size="65,20" position="42,10">
    </Button>
    <Button text="Save Game" name="saveButton" max_size="60,20" position="46,33">
    </Button>
    <Button text="Load Game" name="loadButton" max_size="60,20" position="46,56">
    </Button>
    <Button text="Options" name="optionsButton" max_size="45,20" position="53,79">
    </Button>
    <Button text="Help" name="helpButton" max_size="40,20" position="60,102">
    </Button>
    <Button text="Quit" name="quitButton" max_size="40,20" position="60,125">
    </Button>
</Container>
Attach: <pychan.events._ActionEventListener; proxy of <Swig Object of type 'gcn::ActionListener *' at 0x18335a0> >
Attach: <pychan.events._ActionEventListener; proxy of <Swig Object of type 'gcn::ActionListener *' at 0x18335a0> >
Attach: <pychan.events._ActionEventListener; proxy of <Swig Object of type 'gcn::ActionListener *' at 0x18335a0> >
Attach: <pychan.events._ActionEventListener; proxy of <Swig Object of type 'gcn::ActionListener *' at 0x18335a0> >
<Window min_size="300,300" position_technique="center:center" max_size="300,300" title="PARPG Options">
    <CheckBox text="Full Screen" name="FullscreenBox">
    </CheckBox>
    <CheckBox text="Play Sounds" name="SoundsBox">
    </CheckBox>
    <Label name="InitialVolumeLabel">
    </Label>
    <Slider scale_start="0" name="InitialVolumeSlider" scale_end="10">
    </Slider>
    <HBox min_size="120,90">
        <Label text="Resolution: ">
        </Label>
        <ListBox min_size="120,0" name="ResolutionBox">
        </ListBox>
        <Spacer >
        </Spacer>
    </HBox>
    <HBox min_size="120,47">
        <Label text="Render Backend: ">
        </Label>
        <ListBox min_size="120,0" name="RenderBox">
        </ListBox>
        <Spacer >
        </Spacer>
    </HBox>
    <Spacer >
    </Spacer>
    <HBox min_size="290,20" max_size="290,20">
        <Button text="Close" name="closeButton">
        </Button>
        <Spacer >
        </Spacer>
        <Button text="Reset to Defaults" name="defaultsButton">
        </Button>
        <Button text="Apply" name="applyButton">
        </Button>
    </HBox>
</Window>
Widget text needs to be set from an unicode object. Got: ''Initial Volume: 50%''
Traceback (most recent call last):
  File "./run.py", line 147, in <module>
    main()
  File "./run.py", line 143, in main
    app = PARPG()
  File "./run.py", line 81, in __init__
    self.world = world.World(self.engine)
  File "/home/qubodup/src/abs/fife/src/fife/clients/parpg/scripts/world.py", line 72, in __init__
    self.hud = hud.Hud(self.engine, TDS)
  File "/home/qubodup/src/abs/fife/src/fife/clients/parpg/scripts/hud.py", line 40, in __init__
    self.initializeOptionsMenu()
  File "/home/qubodup/src/abs/fife/src/fife/clients/parpg/scripts/hud.py", line 202, in initializeOptionsMenu
    'InitialVolumeSlider':initialVolume
  File "../../engine/extensions/pychan/widgets/widget.py", line 446, in distributeData
    widgetList[0].setData(data)
  File "../../engine/extensions/pychan/widgets/widget.py", line 395, in setData
    raise RuntimeError("Trying to set data on a widget that does not accept data.")
pychan.exceptions.RuntimeError: Trying to set data on a widget that does not accept data.