From: richard k b. <ri...@co...> - 2005-09-02 05:21:56
|
thanks for your quick reply kevin! On 9/1/05 8:41 PM, Kevin Altis wrote: > > I just tried adding an on_editNewCard_command event handler in > samples\flatfileDatabase.py and the command did work just fine. Perhaps > you have a typo in the actual source file. If you want to reply with an > attachment we can take a look. hmm, cuz samples\flatfileDatabase.py is what i used as my starting point, too!? anyway, my "bobNotes" application and resource files atttached. > Also, just to make sure this isn't a > problem with an older version, are you using version 0.8.1 of > PythonCard? correct, i'm also using 0.8.1. > If you run your application with the -l (L) command line > option you should see each handler being bound, so if there is a typo > you would see the original on_editNewCard_command bound as well as the > command with the typo. i see only one on_editNewCard_command being bound: > DEBUG: : Thu Sep 1 16:20:30 2005: imported component statictext > DEBUG: : Thu Sep 1 16:20:30 2005: imported component staticbox > DEBUG: : Thu Sep 1 16:20:30 2005: imported component textfield > DEBUG: : Thu Sep 1 16:20:30 2005: imported component textarea > DEBUG: : Thu Sep 1 16:20:30 2005: imported component button > DEBUG: : Thu Sep 1 16:20:30 2005: imported component imagebutton > DEBUG: : Thu Sep 1 16:20:30 2005: Initializing Background... > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_close > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editClear_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editCopy_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editCut_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editDeleteCard_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editNewCard_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editPaste_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_editRedo_command ... > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_minimize > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_save_command > DEBUG: : Thu Sep 1 16:20:30 2005: _addHandler: on_sort_command > INFO: : Thu Sep 1 16:20:32 2005: filename: userdata.txt > INFO: : Thu Sep 1 16:20:32 2005: startup took 0.034445 seconds and btw, i get this from enabling logging via the samples/sample.py shell; while i can run my app from command line (pythonw bobNotes.py), i guess i don't know how to pass the -l option in this way? > BTW, running this sample I see that wx has developed a problem with the > transparent next.gif and prev.gif images so I'll have to report that bug > with wxPython 2.6.1.0. ok, but the gifs seem ok to me?! > The dialogs can go in any event handler, you can even try them out in > the shell since they are all single line function calls. i've now looked again for examples in samples, and do find some that i'll hope to apply. thanks again! rik |