| Reply | « Previous Thread | Next Thread » |
|
Hi,
I have a working form that uses the FFormEditModeOnly flag. I need to add the FFormDoubleSpaced flag, so that I can allow the user to edit the form and to display the label on a different line from the value. Does anyone have a working example of this? Here is the __init__ code I have so far: def __init__(): self.isSaved = False self.fields = [(u'color', 'text', u'...'), (u'tv show', 'text', u'...'), (u'movie', 'text', u'...')] self.currForm = appuifw.Form(self.fields, appuifw.FFormEditModeOnly) self.currForm.save_hook = self.markSaved self.currForm.flags = appuifw.FFormEditModeOnly Does anyone know how to add FFormDoubleSpaced to this? Thanks so much! |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
You can do this easily. Your code would be like this: Code:
def __init__():
self.isSaved = False
self.fields = [(u'color', 'text', u'...'),
(u'tv show', 'text', u'...'),
(u'movie', 'text', u'...')]
self.flags = appuifw.FFormEditModeOnly + appuifw.FFormDoubleSpaced
self.currForm = appuifw.Form(self.fields, self.flags)
self.currForm.save_hook = self.markSaved
- add "+ appuifw.FFormDoubleSpaced" to self.flags ( I changed self.currForm.flags for self.flags because it's cleaner for me )- set self.currForm to execute with self.fields and self.flags Next time please use the code tag for posting codes ![]() Hope it helps, Rafael.
Last edited by Rafael T. : 2008-10-27 at 18:42.
|
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
mango7, did you got it?
BR, Rafael. |
|
This was perfect - Thanks so much!
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |