[018] An Introduction to Event-handling (5/5)
in series: Python GUI Programming with wxPython
video tutorial by Kyran Dale
Name:
[008] Kyran Dale
Member:
51 months
Authored:
16 videos
Description:
I'm one of the co-founders of Showmedo and an academic researcher by profession. My peripatetic path has taken me from a Philosophy degree via Artificial Intelligence and Evolutionary Robotics to a Ph ...
Our authors tell us that feedback from you is a big motivator. Please take a few moments to let them know what you think of their work.
In this video we show how wxPython provides an easy way to bind user-generated events, such as choosing a menu option, to methods we provide to handle them. The procedure shown is typical of all wxPython event handling so with little effort can be extended to far more complicated projects. Future videos in this series will demonstrate more advanced event handling.
See additional information and source code in the wiki(PythonWxPythonBeginnersSeries).
Video Tutorials related by tag:
Got any questions?
Get answers in the ShowMeDo Learners Google Group.
Video statistics:
- Video's rank shown in the most popular listing
- Video plays: 11204 (since July 30th)
- Plays in last week: 84
- Published: Sometime before 1st March 2007 (in other words - we don't remember!)
Thank-yous, questions and comments
If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?
You may also want to see our ShowMeDo Google Group to speak to our active users and authors.
Quite good tutorial, thanks :)
It helps a lot. I can understand you really well due to the fact that I'm Gernan.
But the next time ... please avoid this little noise (it sounds like you're eating while recording your video tuts).
Maybe your microphone has to adjusted, I don't know :-P
But all in all ... great work !!
Another good tutforial
Very precise tutorial.
The methodology is superb: there are some pre-written stuff which are easy to capture and you fill in the new material seamlessly. The clean formatting and commenting styles make
following the presentation a breeze! I hope you will continue
to create more of the stuff.
Thanks
Useful thanks.
Is there a way to look at the source from each excersize?
As always very informative.
Thank you very much for the introduction to python!
Great videos keep them coming!
Cool! I've been wanted to create a simple application before. I was able to do it in less than 30 min!. :)) of course, using the tutorial. :D
Thanks for these quick videos. They're clear and complete with lots of practical example code lines. A great place to start learning!
Well done. Thanks.
looking forward to next videos :)
Very good tutorial... I was working along with video and I could get in one go.
Only thing is... please move the cursor out of recording window before typing the code ... Its annoying if we cannot see what we have to type in the code. Not a major issue but can make it perfect.
Very good and clear beginner tutorial. I'm looking forward to the next one.
Most useful. Many thanks.
Thanks. That was helpful.
Great - That was really useful I was struggling to understand how to manage events in wxWidgets but this video really helped.
Thanks
clear, very concise.
thank you
Thank you so much. Very Helpfull video.
Thank you very much for these tutorials! I was looking for a way to make a simple app in Python and I even started looking into VC++ (Which is horrible if you just want to do something *simple*), but then I found your videos.
Again, thanks!
Nice intro to event handlers, thanks.
easy listening, easy to assimilate, many thanks
thanks ,
you covered all the dumb questions very well
but, could you be more careful where the cursor is
i kept wondering what what under it.
Mike.
Very good and clear instructions.
I still have a problem getting my mind around the binding of an event to an event handler. It has to be that I'm still thinking linearly rather than GUI-ly. I've got to get my mind out of this rut!
Thank you, thank you, thank you. I hope there is more to come.
good
I got a little stuck on the last tutorial. I couldn't get OnAbout to work, and the whole app broke my "frame = MainWindow(None,-1,"Small Editor")" line, but for the most part, this tutorial was very helpful :)
Great Job Please keep up the great work.
Great!
I like it. Can't wait for the next part.
Great! Very useful in getting me oriented. Thanks!
Nice Tutorial! I'm looking forward to further Videos!
This was a very helpful introduction to demonstrate the basics. I hope to see more in the future.
One comment is that sometimes the cursor got in the way of the text on screen, so I could not read what was being typed as it was being typed.
very good and interesting. i´ll follow your othe tutorials as well.
thanks a lot
I keep leaving the same comment, but it is true so eh.
Great job.
Very good and easy to understand tutorials . Its very usefull for geginers like me. But The way the person talks makes me krazi all those stupid slurping sound he makes drives me nuts.
Thanks again. I am now ready to tackle the wxPython demo library without being completely overwhelmed.
I've completed these first 5 tuts. It gives a very good overall concept and understanding of how other controls may work, and how the code needs to be laid out.
sure made me learn it quickly
I found the five videos in this series most informative. There is plenty of explanation of the various features used, and the pace is not too fast.
good
I'll try it
tell me more !
Excellent!
Well thought out introduction to wxPython that moves at a comfortable pace. Nicely done!
Very clear presentation.
Thanks
Nice videos, Kyran
I have a background from Java and it was nice to see all the similarities between gui-building in Java and using wxPython. Now I'm off to watch your video on event handling... :)
nice!
Great videos!
Well worth watching to get the basics of wxpython.
If you guys are ever in Sydney , my shout for a beer or few!
Thank you, nice video series. keep up the great work.
Very useful. thank you.
Really excellent introduction. Gave me exactly the jump start I was looking for. We're all adept at reading documentation--once we actually have enough to sink our teeth into. 90% of the time, I need exactly this kind of hand-holding to get me started (and to avoid the inevitable frustration of working with a new system), then I can take over from there.
I sincerely appreciate your time and effort in making this.
exelente video... muchas gracias..
exelente video... muchas gracias..
exelente video... muchas gracias..
Pretty clear
Well done!!!
this video is ok, but you go a little fast whit some explanations.... but is ok..
Good tutorial but your mouse was very annoying cause you always placed it on the sourcecode.
Lookin forward to next Tutorial !
Neat and to the point explanation. I am going to shortly use wxPython. Thanks a lot for all the videos in this section
Just what I was looking for in an introduction. I can take it from here. Thanks!
test side right
I stumbled across your video on the site. I'm an experienced wxPython developer. I wish I had seen these videos when I was starting out.
I wrote WorldStationTM in wxPython, my main product. It use the Twisted networking framework.
I am currently working on a high-level "compiler" for wxPython. This internal project takes a simple text spec file and builds an entire full-stack wxPython app. You can do advanced things like declare Notebook pages and what page a widget will be assigned to. The wigets are generated automatically via a central widget object.
All callbacks, ID's etc are generated automatically.
One of the neat things it does is that it allows the end user to rearrange GUI widgets on the fly when the program is running.
I may post an example of the program running as I get further along and see if there is an developer interest, if that's ok.
The only problem I have not definitively solved with wxPython to date is getting it to run with Twisted on the Mac platform. I am willing to pay a consulting fee for a solution to this problem.
I stumbled across your video on the site. I'm an experienced wxPython developer. I wish I had seen these videos when I was starting out.
I wrote WorldStationTM in wxPython, my main product. It use the Twisted networking framework.
I am currently working on a high-level "compiler" for wxPython. This internal project takes a simple text spec file and builds an entire full-stack wxPython app. You can do advanced things like declare Notebook pages and what page a widget will be assigned to. The wigets are generated automatically via a central widget object.
All callbacks, ID's etc are generated automatically.
One of the neat things it does is that it allows the end user to rearrange GUI widgets on the fly when the program is running.
I may post an example of the program running as I get further along and see if there is an developer interest, if that's ok.
The only problem I have not definitively solved with wxPython to date is getting it to run with Twisted on the Mac platform. I am willing to pay a consulting fee for a solution to this problem.
bottom feeder
side right test
Great intro, I've just watched all 5 videos - has me up and running with 100 questions but able to sink my teeth into wxPython without the pain of reading dreary documentation.
Thanks a lot - would like more tutorials on everything else!!
Excellent tutorial. Thanks for your effort.
This is making a lot of sense.
You got my vote too!
Thanks for ur video tutorial.
Review of An Introduction to Event-handling
This series is a nice, moderately paced demonstration of creating a small program using the wxPython library as the GUI. The series requires a little knowledge about Python to make sense, but users with only a limited Python background should be able to follow along. At the present time, there are only 5 videos in the series, with more promised. At some point in the future, the author might want to include an aside to point users to reference materials for the functions and methods already covered.
And having all the original source code available from this page would be very handy
I agree with the users who said "Itl be helpful to explian why you need to put ID_ABOUT = 101 and ID_EXIT = 110 at the beginning" and about the cursor often being in the way of the text - I find the latter happens a lot in Kyran's vids. More vids in this serious would be great
more more more
Perfect work!
more more more about event handling in textlists and so on...
Very useful to understand a very baffling subject.
Itl be helpful to explian why you need to put ID_ABOUT = 101 and ID_EXIT = 110 at the beginning.
Thanks.
Nice little series to get the basics of wxPythons ui mechanics. Thx!
Great series. It's really helped me to get started with the Python GUIs. Thanks!
I enjoyed this series on wxPython, gives me a much better idea how gui's and dialog boxes are put together. I don't quite understand all of the code, but I don't expect to get it in one day. But this series gives me enough to go on to start playing around and having fun with creating my own text boxes. This really does help thank you very much for your hard work!!
Very useful tutorials however you go at a very slow pace, and there are some aspects of your speaking which make it hard to hear what you are saying at parts or are simply annoying. For example, you sometimes (it seemed to be more prominent in the later videos) have this annoying "lip smack" sound that actually made me not want to listen to the video any more (but I suffered through the rest of it because of the great content ;) ). Also, your voice's volume level rises and gets lower at different points of the screen cast, making it quite frustrating.
If you can work on those things - maybe go at a BIT faster pace and work on your voice (maybe drink some water?) - I think your videos would be SO much better than they (already) are!
Thanks, for this tutorial.
Try to slow down and reduce your mouse movements. They are a little hard to follow.
Review of An Introduction to Event-handling
going to subscribe for a year as soon as I can! please keep it up for us!!!! I have fallen head over heels for Python!
That was great. My only complaint was that your cursor often seems to be in the way. I was trying to copy along, but had to guess what was under the cursor.
Overall, very good. I am left wanting more! :-)
Thank you for this. You explained clearly some points that I've only seen glossed over before.
You've saved me who-knows-how-many hours and a tremendous amount of frustration. I look forward to further videos.
Take a look at http://musiclessonz.com/rebol.html for a Rebol tutorial, and http://musiclessonz.com/rebol_video_links.html for 10 hours of Rebol video tutorials.
Nice tutorial to explain wxPython! As a REBOL coder, wx code seems very lengthy to me. You could do the same thing in REBOL with this code:
view layout [across at 9x9 text bold "About" [alert "A sample editor in Rebol"] text bold "Exit" [Quit] return area]
That's the whole program :)
These were helpful, Kyran. Too bad I've got to go back and learn basic python now ;-( !
The text in early chapters which was obscured by cursor & off right hand side tripped me up too: my couple errors in typing caused socket errors in winxp, and hung idle (which persisted even on restarting idle & sent me down a googling rathole trying to figure out if wxpython had fouled up install or what. Finally determined I had to actually reboot or kill hidden wpython process to clean up the problem; then eventually found the couple of erroneous keystrokes: e.g. "." vs "_" or similar which were causing this.
I guess I learned python is sensitive to typos and a more elaborate IDE which warned about typos might protect from some of these errors.
Overall, I liked this series!
Good tutorial series! Although having trouble finding the EVT_MENU macro listed anywhere in the wxPython online docs.
Good tutorial series! Although having trouble finding the EVT_MENU macro listed anywhere in the wxPython online docs.
---- Thanks - you saved me some time.
Hi there!
I'm fairly new to Python though I'm progressing in learing it more quickly by watching your videos here. Very big thanks for your efforts and keep up the good job pls! ^^
Viktor Vad, Budapest, Hungary
Review of An Introduction to Event-handling
hey i think your tutorial is great, clear and consise.
the only suggestion i would make is to tell the viewer what the ID_ABOUT and ID_EXIT definitions are for. You skipped this entirely, and do not mention why they are assigned to 101 and 110.
These variables are not present in the end of lecture 3, and are already present in lecture 4.
many thanks! i want to do really complex things with wxPython, but I know that starting simple and understanding the interactions is necessary, so i appreciate this. otherwise i find myself diving in too deeply with complex sample programs.
cheers!
j in Colorado, USA
Very nice, a good quick intro to wx. I would like to see more.
It would be nice if you'd place your mouse pointer out of the way, as it occasionally obscures the text.
Thanks
Great.
Can you make one explaining F1.
EG, how to find stuff in the help.
I tried searching for simple stuff like
wx, MessageDialog, but I never figured it out.
Until I understand the help, I am not
really empowered.
Thanks for publishing. I typed in everything and had tons of fun.
-jim
Review of An Introduction to Event-handling
Nicely done (all 5). Very clearly presented. Sound and video excellent.
I'd love to see a presentation on SciPy+matplotlib, especially if it included the use of binary data format.
Thanks a lot, I enjoyed it. My only recommendation is to move the mouse away from text as it gets in the way when you're typing.
Asante sana , that's "thanks alot" in swahili.Never ever think that ur work iz not appreciated.Give us more , I dare u.
Thanks for making these videos. You explain how to get started with wxPython very well. The code that comes out of it is a great starting point pretty much any other wxPython application. I refer to this series and make use of the example code found in the wiki in my own series. Thanks again!
-Erik
I am just getting started with wxPython. I use PythonCard to create my interfaces now and I'm finding that I need to supliment it with the real thing from time to time. Watching an expert walk through the process has been very helpful. These videos should help me make the leap to wxPython from PythonCard in the near future. Thanks!
Very helpful for someone like me -- completely new to Python. Thanks for the effort.
Minor gripes:
1. Try to keep the mouse pointer out of the way when typing in new code
2. I could have stood the pace to be a little bit faster.
Hi Kyran,
Thank you for your excellent tutorials on wxPython. The audio quality was good and the screen readable. Overall, concise and well done.
In session #5 you mentioned that you plan to develop more sessions on other event-handling topics. I hope you do. If so, is it possible to be notified when they are available?
Thanks much and keep up the good work.
Bob Schoening, San Jose, CA
I switched to Linux from a Microsoft/Visual Basic environment. I've spent quite a bit of time looking for a way to get started programming a GUI application in Linux/Python. These videos are an excellent approach. They are simple to follow, with each building on the preceding one. Exactly what I was looking for. Thank you for taking the time to create them and keep up the good work.
-- Ian
thanks a lot for this set of videos, very helpfull and easy to understand.Keep them coming :)
Martin.
Fantastic series, many thanks!!
Anon - as the author of our 2 commercial series I have to disagree. The authors of books about Python don't give their books away for free, why should authors of screencasts be expected to only give away their results for free?
Almost all of our content is free. A small amount is commercial - these two commercial series (I created both) took a lot of time to create. If I couldn't expect to earn money from the time that I invested, I wouldn't have been able to justify creating them in the first place.
Do please check out the comments left by purchasers - you'll see that everyone who buys the series is very happy with what they learned:
http://showmedo.com/videos/series?name=pythonOzsvaldPyNewbieSeries
http://showmedo.com/videos/series?name=IwrOgqPc9
I simply couldn't have created the series (they took 4 days each) if I was going to give these away for free.
There is of course no requirement that you buy our series in order to use ShowMeDo - you are very welcome just to view the free content (and there is an awful lot of it!).
If you wanted to learn about the topics that I cover in the videos but you don't want to pay then you only have to invest your own time searching the web, you'll find all the answers out there if you invest enough time.
Cheers,
Ian (ShowMeDo co-founder, author)
Since we all belong to open-source community, it is not appropriate to charge money for videocasts (screencasts?) about programming in Python. Please make those videocasts public. Thanks.
The pace is just about right.
I like the approach of starting simple, and successive videos building up more and more functionality.
Thanks for the video.
-- Bruce Lueckenhoff
Hi Kyran, I've just finished watching the Python event handling video, and I found it to be clear, easy to understand, and very helpful. Thanks for creating this video series, and please keep up the good work. There is sadly a lack of good quality Python video tutorials, so you excellent tutorials are greatly appreciated! Kudos. - Ryan
I have just completed the 6 lessons and they were fantastic. Not only did I learn some basic wxPython widgets, I now UNDERSTAND some OO programming. Up till now, just could not grasp. it. Thank you..................
Very good!!Thank you!
Excellent, thanks!
Thanks so much Kyran. I love to read but screencasts are even better.
This has been a great way for me to get a quick intro to wxpython
-Patrick
I like the videos, a lot! Please continue the course!!!
These were at a low enough level that even I could understand them! Keep up the good work because newbies like me need as much hand holding as possible.
Thanks for the videos.. :)
C.hak sana hidayet versin :)
Thanks, I find this a great way to start learning wxPython :)
Great videos Kyran!! these examples helped me become a bit more comfortable working int wxPython.
This is a wonderful resource. They make python programming accessible to everyone in a enjoyable way. Keep the videos coming.
Chris Wrote:
"to move the mouse cursor out of the way when you write a line." I agree that is distracting. But very good. I hope to see more of your WX Python Tutorials they are very good. I wished you could cover the save and load function on the scripting editor that would be very cool and useful to me.
I posted your tutorials and told everyone about WX Python on my site just to let you know.
Thanks for the videos. Very nice.
A must demo for the starters in python. It would be better to have more sessions on this.
Improved script aviable at <a href="http://wiki.showmedo.com/index.php?title=PythonWxPythonBeginnersSeries">wiki.showmedo.com (PythonWxPythonBeginnersSeries)</a>.
watched all of the wx-videos and lost all fear of the unknow wx. Great videos, thank you for doing all this work !
Small suggestions to make the videos even greater:
<ul> <li>Putting the final python scripts somewhere to see/downlad, because i was unable to copy the scripts from the video via the clipboard and i was not always fast enough to type all commands correctly while watching the video. </li> <li>Putting an link to the final script into a comment line at the start of python scripts in the video. The effect would be that i can always see the link to the final script while watching the video.</li> </ul>
Hello,
i've followed your videos and like it a lot! Thanks very much.
Would love to see more!
I just found this and it's perfect to learn wxPython, you did a very good job. I hope you continue this series of videos. The only suggestion I have is for you to move the mouse cursor out of the way when you write a line. In every video of this series you had your mouse cursor over the line you were writing at the moment and that's a bit distracting when one wants to follow what you are writing :) But that's really the only "bad" thing, other than that, it's perfect.



