-
Notifications
You must be signed in to change notification settings - Fork 109
/
TESTING-EMAIL-LAYOUT.py
executable file
·53 lines (39 loc) · 1.67 KB
/
TESTING-EMAIL-LAYOUT.py
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
#!/usr/bin/env python
# encoding: utf-8
import npyscreen
#npyscreen.disableColor()
class TestApp(npyscreen.NPSApp):
def main(self):
F = npyscreen.Form(name = "Welcome to Npyscreen",)
classification = F.add(npyscreen.MultiLineEditableBoxed,
max_height=4,
name='Classification:',
#footer="Press i or o to insert values",
slow_scroll=True)
#F.nextrely += 1
subject = F.add(npyscreen.MultiLineEditableBoxed,
max_height=4,
name='Subject:',
#footer="Press i or o to insert values",
slow_scroll=True)
#F.nextrely += 1
to = F.add(npyscreen.MultiLineEditableBoxed,
max_height=6,
name='To:',
#footer="Press i or o to insert values",
scroll_exit=True)
cc = F.add(npyscreen.MultiLineEditableBoxed,
max_height=6,
name='CC:',
#footer="Press i or o to insert values",
scroll_exit=True)
bcc = F.add(npyscreen.MultiLineEditableBoxed,
max_height=6,
name='BCC:',
#footer="Press i or o to insert values",
slow_scroll=True)
# This lets the user play with the Form.
F.edit()
if __name__ == "__main__":
App = TestApp()
App.run()