The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
vmars316 (14) [Avatar] Offline
#1
Greetings,
I am stepping thru the "Changing a PythonCard Application"
@ http://pythoncard.sourceforge.net/walkthrough1.html
With NO changes, pgm runs fine.
But when I make the change and run it
program just Flashes a Console screen
and immediately ends.
Can someone spot the error?
#!/usr/bin/python
"""
__version__ = "$Revision: 1.8 $"
__date__ = "$Date: 2005/12/17 15:20:02 $"
"""
# from PythonCard import model <==Original, next line = change
from PythonCard import dialog, model
class Minimal(model.Background):
def on_menuFileAbout_select(self, event):
# result = dialog.alertDialog(self, 'It works!', 'Showing
Off') <==Original, next line = change
result = dialog.alertDialog(self, self.components.field1.text,
'Showing Off')
if __name__ == '__main__':
app = model.Application(Minimal)
app.MainLoop()

Or, can you aim me @ where i can get some help?

Thanks...Vernon
carter.sande (32) [Avatar] Offline
#2
Re: "Changing a PythonCard Application"
Hi there,
Unfortunately, this forum takes off the whitespace at the start of lines. Therefore, we can't properly try to run your program.

However, if you e-mail us at cp4khelp@yahoo.ca and attach your program, we'll try and help you.

Carter
vmars316 (14) [Avatar] Offline
#3
Re: "Changing a PythonCard Application"
Your email address: cp4khelp@yahoo.ca
doesn't work for me.
<<
This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

cp4khelp@yahoo.ca
>>
Pls, what's wrong?
Thanks...Vernon
carter.sande (32) [Avatar] Offline
#4
Re: "Changing a PythonCard Application"
Sorry, I sent you the wrong address. It's cp4khelp@yahoo.com
Sorry,
Carter