On 1/18/12 7:24 AM, John Fabiani wrote:
> On Friday, January 13, 2012 03:46:50 PM Paul McNett wrote:
>> Log:
>> When adding a spacer to a horizontal sizer, you have to send a tuple like
>> (5,0) to  get a spacer of 5 in the horizontal direction and 0 in the
>> vertical. If you just send an integer 5, you'll get a spacer that is (5,5)
>> which I'll go out on a limb and surmise isn't the common desire. The same
>> is true when wanting a vertical spacer.
>
> Isn't the second value of tuple the proportion value and not the vertical?

No. From dabo/dabo/ui/uiwx/dSizerMixin.py:

  239   def appendSpacer(self, val, proportion=0):
  240     """Appends a spacer to the sizer."""

Prior to my commit, if val wasn't a tuple, it would be converted to one with 
the 
horizontal value equaling the vertical value. The proportion is a completely 
separate 
argument.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to