[EMAIL PROTECTED] wrote:
> Looking for suggestions as to how to overlay 2 objects (i.e. same position
> on screen) which will be toggled (mutually exclusively) as visible.
> 
> For example, we need to be able to display weights in kilos (_____Kg) or
> lbs/oz (____Lbs ___Oz), based on a user selectable setting on the form.

Define two sizers with the kilos in one and the lbs/oz in the other. Add 
both sizers to the parent sizer. Define a form method:

def setUnit(self, unit="lbs"):
        assert unit in ("lbs", "kilos")
        if unit == "lbs":
                self.szKilos.Visible = False
                self.szLbs.Visible = True
        else:
                self.szKilors.Visible = True
                self.szLbs.Visible = False

I've not done exactly this, but similar stuff and it should work fine.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to