예제 #1
0
 def _addComponents(self):
     
     wns = WN.getWNRegister()
     
     heading = WW.DivFrame()
     heading.setClass('heading')
     heading.add(UTIL.getText('REGISTER_FREE'))
     self.add(heading)
     
     comp = NW.LabelTextbox('PROFID',wns.getAltId('PROFID'), True)
     self.add(comp)
     
     comp = NW.LabelTextbox('NAME',wns.getAltId('NAME'), True)
     self.add(comp)
     
     comp = NW.LabelTextbox('PASSWORD',wns.getAltId('PASSWORD'), True)
     comp.getComponent().setPasswordType()
     self.add(comp)
     
     comp = NW.LabelTextbox('CONFIRMPASSWORD',wns.getAltId('CONFIRMPASSWORD'), True)
     comp.getComponent().setPasswordType()
     self.add(comp)
     
     comp = NW.LabelTextbox('EMAIL',wns.getAltId('EMAIL'), True)
     self.add(comp)
     
     comp = NW.LabelDropdown('SEX',UTIL.addSelectOne(UTIL.getTextList('SEX_LIST')),wns.getAltId('SEX'), ['Select one',1,0],True)
     self.add(comp)
     
     comp = NW.DateWidget('DOB',True, [wns.getAltId('DOB_DAY'), wns.getAltId('DOB_MONTH'),wns.getAltId('DOB_YEAR')])
     self.add(comp)
     
     self.nl()
     
     bButton = NW.BusyTableButton(self.getId()+'Button',UTIL.getText('REGISTER'))
     self.add(bButton)
예제 #2
0
    def __init__(self, nameid, model, addSel=False):
        if addSel == True:
            UTIL.addSelectOne(model.getValues())
            UTIL.addSelectOne(model.getLabels())

        WW.MDropdown.__init__(self, nameid, model)
예제 #3
0
파일: test.py 프로젝트: anoopms/WebServer
def testLabelCombo():
    return NW.LabelDropdown('WEIGHT',UTIL.addSelectOne(inboxutils.getWeightList()),'weight123', [],True)