import appuifw e32 math def a1 print def print def print def print def

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import appuifw, e32, math
def a1():
>>a=1
>>print('a=1')
def a(2):
>>a=2
>>print('a=2')
def a(3):
>>a=3
>>print('a=3')
def b(1):
>>b=1
>>print('b=1')
def b(2):
>>b=2
>>print('b=2')
def b(3):
>>b=3
>>print('b=3')
def c(1):
>>c=1
>>print('c=1')
def c(2):
>>c=2
>>print('c=2')
def c(3):
>>c=3
>>print('c=3')
def s4et(a,b,c):
>>d=b*b-4*a*c
>>if d<0:
>>>>print('d<0')
>>if d>0:
>>>>kd=math.sqrt(d)
>>>>x1=(-b-kd)/(2*a)
>>>>x2=(-b+kd)/(2*a)
>>>>print('x1')
>>>>print('x2')
appuifw.note(u'a*x^2+b*x+c=0','info')
print('a*x^2+b*x+c=0')
appuifw.app.menu = [
>>(u'a=1',a1),
>>(u'a=2',a2),
>>(u'a=3',a3),
>>(u'b=1',b1),
>>(u'b=2',b2),
>>(u'b=3',b3),
>>(u'c=1',c1),
>>(u'c=2',c2),
>>(u'c=3',c3),
>>(u'pos4itat',s4et)
]
def quit();
>>app_look.signal()
>>appuifw.app.set_exit()
appuifw.app.exit_key_handler = quit
app_lock = e32Ao_lock()