From: Don T. <nos...@ca...> - 2005-12-14 02:43:43
|
Total Newbie question - I have not yet tried PythonCard or wxWidgets but I will 'real soon now'. I presume that I can use Eclipse+Pydev for my Python editing while using Pythoncard to edit my resources. My question is can I run and debug a PythonCard application from within Eclipse+Pydev? I know that I can try this out myself (and I will) but has anyone else tried this, or something like it, and what pitfalls I should look out for. Thanks, Don. |
From: Alex T. <al...@tw...> - 2005-12-14 09:06:19
|
Don Taylor wrote: > Total Newbie question - I have not yet tried PythonCard or wxWidgets > but I will 'real soon now'. > > I presume that I can use Eclipse+Pydev for my Python editing while > using Pythoncard to edit my resources. My question is can I run and > debug a PythonCard application from within Eclipse+Pydev? > > I know that I can try this out myself (and I will) but has anyone else > tried this, or something like it, and what pitfalls I should look out > for. Sorry, I haven't tried Eclipse. I use the PythonCard editor about 90% of the time - does have some advantages for having built-in knowledge of the controls and events associated with them, plus easy access to the runtime options (debug, log, message watcher, etc.) When I have complex changes to do, I use Emacs for the sake of its macros etc. (and out of long-term habit). The other 5% of the time, when I want a serious debugger, I use Wing-IDE (Personal Edition). -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 13/12/2005 |
From: Don T. <nos...@gm...> - 2005-12-14 23:51:47
|
Alex Tweedly wrote: > > I use the PythonCard editor about 90% of the time - does have some > advantages for having built-in knowledge of the controls and events > associated with them, plus easy access to the runtime options (debug, > log, message watcher, etc.) > I been able to use Eclipse/Pydev on "Minimal" and the debugger seems to work at least in a very simple set up. Eclipse/Pydev and the resourceEditor seem to play quite nicely togtether. If the resource files has a different extention then I could register the resourceEditor as an external editor on Eclipse. I am curious about the PythonCard editor having "built-in knowledge of the controls and events associated with them". A quick look at the code editor did not reveal this to me - what should I be looking for? I plan to experiment further with Eclipse/Pydev - PythonCard as it seems like a nice combination to me. Thanks, Don |
From: Alex T. <al...@tw...> - 2005-12-15 00:50:36
|
Don Taylor wrote: > Alex Tweedly wrote: > >> >> I use the PythonCard editor about 90% of the time - does have some >> advantages for having built-in knowledge of the controls and events >> associated with them, plus easy access to the runtime options (debug, >> log, message watcher, etc.) > > I am curious about the PythonCard editor having "built-in knowledge of > the controls and events associated with them". A quick look at the > code editor did not reveal this to me - what should I be looking for? It's not in the "normal" codeEditor, it's in the "advanced" version, which can be found, rather confusingly, in PythonCard/tools/oneEditor/tabcodeEditor.py Has two features not in the basic editor - uses tabbed notebook to allow multiple files to be edited - has a drop-down for all controls in the current file Selecting one of them makes another drop-down appear. This shows all events for that control type, with a "+" marking those for which a handler exists. Selecting one of those will position the cursor on the first line of the handler. Selecting one for which no handler exists yet will insert a "blank" handler (without ensuring your on a blank line - use with care :-) This "advanced" editor is "experimental" - hasn't been as widely used or tested as the basic one, so use with care. Having said that, I've used it almost exclusively for many months and had only one (repeated) glitch (something to do with opening new windows while the shell window is open - but couldn't reproduce it). Oh - and it doesn't yet do Ctrl-F4 to close a tab - you need to do Ctrl-W. Minor, but annoying. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 13/12/2005 |
From: Don T. <nos...@gm...> - 2005-12-16 04:46:21
|
Alex Tweedly wrote: > It's not in the "normal" codeEditor, it's in the "advanced" version, > which can be found, rather confusingly, in > PythonCard/tools/oneEditor/tabcodeEditor.py > > Has two features not in the basic editor > - uses tabbed notebook to allow multiple files to be edited > - has a drop-down for all controls in the current file > Selecting one of them makes another drop-down appear. > This shows all events for that control type, with a "+" marking > those for which a handler exists. > > Selecting one of those will position the cursor on the first line of the > handler. > Selecting one for which no handler exists yet will insert a "blank" handler > (without ensuring your on a blank line - use with care :-) > > This "advanced" editor is "experimental" - hasn't been as widely used or > tested as the basic one, so use with care. Having said that, I've used > it almost exclusively for many months and had only one (repeated) glitch > (something to do with opening new windows while the shell window is open > - but couldn't reproduce it). > Oh, this looks very handy indeed. Thanks. What about a facility for adding background event handlers too? I initialize mentioned in a tutorial, but I can't find a refernce to any others. Don. |
From: Alex T. <al...@tw...> - 2005-12-16 10:41:22
|
Don Taylor wrote: > Alex Tweedly wrote: > >> - has a drop-down for all controls in the current file >> Selecting one of them makes another drop-down appear. >> This shows all events for that control type, with a "+" marking >> those for which a handler exists. >> <etc.> > > > Oh, this looks very handy indeed. Thanks. > > What about a facility for adding background event handlers too? I > initialize mentioned in a tutorial, but I can't find a refernce to any > others. > They aren't used all that often (or at least, I don't use them that often). They aren't true "background" handlers in the Hypercard sense, so you need to be careful (though given that I've never used Hypercard, my interpretation may be slightly off ....) You can create a handler, say on_mouseMove. If there is a component which could have had a mouseMove handler, but doesn't, then those events go to the "background" handler instead. But there is no mouseMove event generated when the mouse is moved while not over any component, nor while over a component that doesn't support mouseMove. Since the code inserted is so minimal, I'm not sure it's worth adding a method to insert background handlers - easy enough to do manually, or to add a handler to a component and remove the component name (i.e. edit "on_someComponent_event" to be just "on_event") -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 15/12/2005 |
From: Don T. <nos...@ca...> - 2005-12-14 14:43:58
|
Don Taylor wrote: > Total Newbie question - I have not yet tried PythonCard or wxWidgets but > I will 'real soon now'. > > I presume that I can use Eclipse+Pydev for my Python editing while using > Pythoncard to edit my resources. My question is can I run and debug a > PythonCard application from within Eclipse+Pydev? > > I know that I can try this out myself (and I will) but has anyone else > tried this, or something like it, and what pitfalls I should look out for. > I tried this last night and it seemed to work quite nicely - at least for the few minutes that I played with the 'minimal' app simultaneously in both Eclipse/Pydev and the resource editor. I was able to run the Pydev debugger on minimal and it looked OK. Eclipse recognized when a file it was editing changed on the file system and offered to reload it. More play to day. Don. (FWIW. The main reason I like Eclipse is because of its local history feature, I don't think that I want to live without it. You can safely bash away at some source and save it multiple times knowing that you can always go back to a working version without having to remember what you need to do to undo the changes. It is like having a local version control system that automatically commits your changes whenever you save a file. I don't know if other editors/IDEs have this feature.) |