Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 13th, 2004, 05:48 AM
flixxer flixxer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 44 flixxer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
event.Skip

What event.Skip means exactly is, Boa seems to add this at the end of every function, sometime the function doesn't works without it and sometimes the function is scewed because of it ( eg. about notebook function in my first post, I removed the event.Skip and it's doing fine.

Reply With Quote
  #2  
Old May 13th, 2004, 06:33 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
That call is used in in your event handler to control if the event is passed on to the underlying wxPython handlers for the same event. Sometimes you just want to know the event has occurred but then pass it on for more processing. Other times your event handler is the only one that should process the event.

It is documented but I can't check it right now (I'm testing a new 3G data card - very ).

Grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old May 13th, 2004, 07:25 AM
flixxer flixxer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 44 flixxer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Then when I should use it and when I shouldn't?

Reply With Quote
  #4  
Old May 13th, 2004, 01:14 PM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
event.Skip() - normally used when you have finished dealling with the event and want to pass the event to the default event handler.

For example: you could register an event handler for keyboard events - say you don't want the TAB key or BACKSPACE key to work.

Your event handler will be called every time a key is pressed. Your handler will inspect the event to check the value of the key. Any key pressed other than TAB and BACKSPACE you would exit the method calling event.Skip() so that the normal keyboard handler would be called (to handle text entry etc.). If the key was TAB or BACKSPACE you would not call event.Skip().

I have to say that calling the method Skip is not helpful in this context - it might better called ContinueDownTheChainOfEventHandlers or just Continue


There is an introduction in the BOA help that might explain things better called Event handling overview.

Grim

Last edited by Grim Archon : May 13th, 2004 at 01:17 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > event.Skip


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway