On 1/18/12 11:49 AM, John Fabiani wrote: > On Wednesday, January 18, 2012 10:48:49 AM Paul McNett wrote: >> 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 > > OK so now the when I call > .appendSpacer(5,1) > > I get > .appendSpacer((5,0),1)
Yes, where before you would have gotten: .appendSpacer((5,5), 1) > Thanks, You are welcome! :) 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]
