Ticket #490 (closed defect: invalid)

Opened 8 years ago

Last modified 7 years ago

The spacer concept in pychan does not work

Reported by: vtchill Owned by: FIFE
Priority: normal Milestone: 0.3.3
Component: engine/extensions/pychan Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Time planned:
Time remaining: Time spent:


Pychan allows adding a spacer which is represented as fixed or expandable whitespace in the GUI. These are not working and examples of their use can be seen in the pychan_demo.

Here is an excerpt of code from the dynamic.xml in pychan_demo showing how it is used:


<Button name="addButton" text="Add one label!"/> <Spacer /> <Button name="okButton" text="Close"/>


The "<Spacer />" in the code above appears to have no affect on the layout.

Change History

comment:1 Changed 8 years ago by kili

Maybe its overwritten by a style ?

comment:2 Changed 7 years ago by prock

  • Milestone changed from 0.3.2 to 0.3.3

No time in 0.3.2... moving to 0.3.3

comment:3 Changed 7 years ago by prock

  • Status changed from new to closed
  • Resolution set to invalid

In the example shown here the spacer has no "width". You much specify the width in order for it to work. i.e. set the min_size attribute of the spacer to 42 and you should see a nice space.

Closing ticket as invalid.

comment:4 Changed 7 years ago by eoc

.. or set the min_size / size of the containing box. Just without any size, spacers won't expand because they see no reason to.

Note: See TracTickets for help on using tickets.