按照以下说明编写一个程序:
- 在屏幕上显示一个文本输入框。输入框上的需要有“Type your first name”字样的提示。
- 在用户在文本输入框输入完文字并按下”OK”后,用一个弹出框显示用户输入的文本信息: Your first name is: < 用户的输入>。
- 在屏幕上显示一个文本输入框。输入框上的需要有“Type your surname”字样的提示。
- 在用户在文本输入框输入完文字并按下”OK”后,用一个弹出框显示用户输入的文本信息: Your surname is: < 用户的输入>。
- 用弹出框显示一个通知消息: Your full name is: < 用户的输入>。
示例代码: ------------------------------------ # Copyright (c) 2005 Jurgen Scheible import appuifw data1 = appuifw.query(u"Type your first name:", "text") appuifw.note(u"Your first name is: " + data1, "info") data2 = appuifw.query(u"Type your surname:", "text") appuifw.note(u"Your surname is: " + data2, "info") appuifw.note(u"Your full name is: " + data1 +u" " + data2, "info") ----------------------------------- |