Кусок кода:
class Main:
def __init__(self):
app.screen='normal'
self.fields=[
(u"To",'text',u''),
(u"From",'text', u''),
(u"Message",'text', u''),
]
self.form=Form(self.fields,flags=FFormDoubleSpaced|FFormEditModeOnly)
self.form.menu=[(u'Send',self.sendpost)]
self.form.execute()
def sendpost(self):
params = urllib.urlencode({'send': to, 'by':from, 'text': message})
(...код самого post...)
appuifw.note(u"Okay", "conf")