slupz Pubblicato: 30 Novembre 2009 Segnalazione Share Pubblicato: 30 Novembre 2009 ciao a tutti, sto cercando di inserire un form con i checkbox ma da errore e non trovo che comando inserire.... metto un po di codice def insertForm( self ): # list of payment types self._payments = [u"Cash", u"Bancomat", u"Credit card", u"Check", u"Payable"] # elenco fornitori self._suppliers=[u"Market", u"Despar", u"Coop", u"Visotto", u"Pam", u"Altro"] self._type_buy=[u"Pane", u"Acqua", u"Vino", u"Latte"] # creazione Form self._iFields = [( u"Date", "date", time.time()), ( u"Shop", "combo", (self._suppliers, 0)), ( u"Type", "checkbox", (self._type_buy, 0)), ( u"Paid", "combo", (self._payments, 0 )), ( u"Price", "float", 0.0), ( u"Another", "text")] ## Mostro il form. self._iIsSaved = False self._iForm = appuifw.Form(self._iFields, appuifw.FFormDoubleSpaced+appuifw.FFormEditModeOnly) self._iForm.save_hook = self._markSaved self._iForm.execute( ) grazie Link to comment Condividi su altri siti More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Accedi Ora