-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathapp.py
More file actions
30 lines (23 loc) · 702 Bytes
/
app.py
File metadata and controls
30 lines (23 loc) · 702 Bytes
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
"""
app.py
Chapter 10 WxWidgets
Author: William C. Gunnells
Rapid Python Programming
"""
# lib
from PythonCard import model
from bfile import *
class Minimal(model.Background):
def on_b_submit_mouse_lick(self, event):
name_f = str(self.components.fname.text)
name_l = str(self.components.lname.text)
self.components.stest.text = ' '
file_write(name_f)
file_write(name_l)
self.components.fname.text = ' ' # clear text field
self.components.lname.text = ' ' # clear
self.components.stest.visible = 1
self.components.stest.text = name_f
if __name__ == '__main__':
app = model.Application(Minimal)
app.MainLoop()