From: <kim...@ya...> - 2005-07-05 21:52:28
|
I don't know whether this is true or not with other Python GUI toolkits (I only know PythonCard) but I find PythonCard extremely easy to handle situations where you have a number of user interfaces that are quite similar and yet each one has it's own subtleties that needs its own code. For instance, with the application I am developing, I have many situations like that. So, what I did was to define a super-class for all of the similar GUIs. Then I have one file (module) for each of the GUIs, and subclass them from the super-class. This way, I can have a resource file for each of them, and yet share lots of the common action code as long as I structured the code accordingly. Not sure if this is too much for your presentation but if the audience are seasoned Python programmers, may be the object oriented nature of doing things might appeal to them. I really like PythonCard. The only gripe I have is the lack of more detailed documentations, like which control supports which method and so forth - the existing documentation needs a lot of improvement. I had to spend a lot of time looking through code before I can figure out how to do certain things. -- John Steve Christensen wrote: > Alex Tweedly wrote: > >>Andy Todd wrote: >> >> >>>Steve Christensen wrote: >>> >>> >>>>On our local python user's group mailing list, I shot my mouth off that >>>>PythonCard was great (which it definitely is). Now I've been asked to do >>>>a presentation. Curses! >>>> >>>>I was thinking of covering the following: >>>> >>>>* a walk-through of the tutorials (this might drop off, since it'd be >>>>duplicating the stuff discussed in the tutorials) >>>> >>>>* a comparison between a simple application written in PythonCard vs. >>>>straight wxPython. >>>> >> >>Remember it's as much the difference in process as the difference in the >>resulting code that matters. >> >> >>>>* a brief list of 'why choose pythoncard' (hit some of the highpoints of >>>>the recent 'who is pythoncard's intended audience' thread). >>>>* a brief example of directly using wxPython inside a PythonCard >>>>application (anyone have a link to a straightforward example?). >>>> >> >>One aspect of that is using sizers - part of wxPython but not Pythoncard >>- a good simple example is the FindFiles utility. >> >>I'd also mention the ability to customize the built-in components if >>needed - see the recent example on multicolumn lists. >> >> >>>Whenever I've done this kind of thing I've found that interactive >>>demos are the best way to show PythonCard's strengths. Stick to one of >>>the early walkthroughs by Dan Shafer with detours into the tools >>>(resource editor, code editor and runtime shell) and you will soon >>>find that time flies. >>> >>>If you wan't some great material this document by Patrick O'Brien from >>>2002 is a great resource; >>> >>>http://www.onlamp.com/pub/a/python/2002/07/18/pycrust.html >>> >> >>I'd agree 100% with that. Do not underestimate how much of your allotted >>time it will take to get through even a simple example, given a couple >>of questions as you go; demonstrations to a mixed audience need to be >>much slower than if you were just doing it for yourself. >> > > > Thanks Andy and Alex for the advice. > > If people are interested... you can get a first draft of my presentation > from : > http://www.xmission.com/~stnchris/tmp/IntroducingPythonCard_v1.pdf > > Any areas where I should go into more depth? Less depth? > > Should I touch on the other provided tools, e.g. findFiles/codeEditor (I > tend to use Vim for everything, so I'm not that familiar with > codeEditor). > > Should I stick to one example program rather than the 2.5 I'm using? > (The .5 coming from my project which I wanted to show as a more > 'complete' application rather than a demo. I didn't want to go into > too much detail... it seems like it could derail the conversation away > from PythonCard into the other libraries/frameworks used) > > > -Steve > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > |