#1066: Sizer vertical alignment differences
-------------------------+--------------------------------------------------
Reporter: paul | Owner: somebody
Type: discussion | Status: new
Priority: minor | Milestone: 0.9
Component: ui | Version: 0.8.x
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Comment (by anonymous):
Below is my code but only the last few lines apply.
def afterInit(self):
self.Sizer = vs = dabo.ui.dSizer("v")
gs = dabo.ui.dGridSizer(MaxCols=10)
gs.append(dabo.ui.dLabel(self, Caption=" Species # "),
halign="right",colSpan=1)
lusp=RAfkLookupPanel(self,
RegID='SpeciesluPanel',TargetBizObj=self.Form.PrimaryBizobj,
BizObjField='fk_species',
CodeObjRegID='txtSpeciesCodeID',
CodeObjFindBtnRegID='btnSpeciesCodeID', DescObjRegID='txtSpeciesNameID',
DescObjFindBtnRegID='btnSpeciesNameID',
LookupBizObj=self.Form.SpeciesLookup,
LookupCodeField='speciesnum',
LookupDescField='species', CodeInputType='I')
gs.append(lusp,colSpan=1)
gs.append(dabo.ui.dLabel(self, Caption=" Variety # "),
halign="right")
lustring = "'fk_species= %s' %
(self.Form.SpeciesluPanel.LookupVal)"
luvp=RAfkLookupPanel(self,
RegID='VarietyluPanel',TargetBizObj=self.Form.PrimaryBizobj,
BizObjField='fk_variety',
CodeObjRegID='txtVarietyCodeID',
CodeObjFindBtnRegID='btnVarietyCodeID', DescObjRegID='txtVarietyNameID',
DescObjFindBtnRegID='btnVarietyNameID',
LookupBizObj=self.Form.VarietyLookup,
LookupCodeField='varnum',
LookupDescField='varname', LUFilter=lustring, CodeInputType='I')
#gs.append(luvp,colSpan=2)
gs.append(luvp)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
#gs.appendSpacer(1)
#gs.appendSpacer(1)
gs.append(dabo.ui.dLabel(self, Caption=" Origin # "),
halign="right")
luop=RAfkLookupPanel(self,
RegID='OriginluPanel',TargetBizObj=self.Form.PrimaryBizobj,
BizObjField='fk_origin',
CodeObjRegID='txtOriginCodeID',
CodeObjFindBtnRegID='btnOriginCodeID', DescObjRegID='txtOriginDescID',
DescObjFindBtnRegID='btnOriginDescID',
LookupBizObj=self.Form.OriginsLookup,
LookupCodeField='norigincode',
LookupDescField='corigindesc', CodeInputType='I')
gs.append(luop)
gs.append(dabo.ui.dLabel(self, Caption=" Package # "),
halign="right")
lupp=RAfkLookupPanel(self,
RegID='OriginluPanel',TargetBizObj=self.Form.PrimaryBizobj,
BizObjField='fk_origin',
CodeObjRegID='txtOriginCodeID',
CodeObjFindBtnRegID='btnOriginCodeID', DescObjRegID='txtOriginDescID',
DescObjFindBtnRegID='btnOriginDescID',
LookupBizObj=self.Form.OriginsLookup,
LookupCodeField='norigincode',
LookupDescField='corigindesc', CodeInputType='I')
gs.append(lupp)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
gs.appendSpacer(1)
vs.append(gs,1,'x')
newvs=dabo.ui.dSizer("h")
newvs.appendSpacer(1)
newvs.append(dabo.ui.dCheckBox(self, Caption="Consigned"))
newvs.appendSpacer(1)
newvs.append(dabo.ui.dLabel(self,
Caption="Quantity"),alignment="middle",proportion=0)
newvs.append(RANumBox(self,
MinValue=0.00,MaxValue=999999999.9999,IntegerWidth=9,DecimalWidth=4),proportion=1)
newvs.append(dabo.ui.dLabel(self,
Caption='Price'),alignment="middle",proportion=0)
newvs.append(RANumBox(self,
MinValue=0.00,MaxValue=999999.99),proportion=1)
vs.append(newvs,1,'x')
--
Ticket URL: <http://svn.dabodev.com/trac/dabo/ticket/1066#comment:2>
Dabo <http://svn.dabodev.com/trac/dabo>
Trac Page for Dabo
_______________________________________________
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]