forked from thecount12/rapidpythonprogramming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
25 lines (22 loc) · 635 Bytes
/
app.py
File metadata and controls
25 lines (22 loc) · 635 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
#!/usr/bin/python
#app.py
# Chapter 10 WxWidgets
# Author: William C. Gunnells
# Rapid Python Programming
# libs
from PythonCard import model
from bfile import *
class Minimal(model.Background):
def on_bsubmit_mouseClick(self, event):
namef = str(self.components.fname.text)
namel = str(self.components.lname.text)
self.components.stest.text=' '
FileWrite(namef)
FileWrite(namel)
self.components.fname.text=' ' # clear text field
self.components.lname.text=' ' # clear
self.components.stest.visible=1
self.components.stest.text=namef
if __name__ == '__main__':
app = model.Application(Minimal)
app.MainLoop()