ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxPython-users
wxPython-users
Re: [wxPython-users] Tab question
by Mike C. Fletcher other posts by this author
Mar 25 2003 12:24AM messages near this date
Re: [wxPython-users] Tab question | Re: [wxPython-users] Tab question
I'm not sure if it's wrapped to be overridable by Python windows, but 
this works with the wxcontrolcontainer verison I posted a while ago, and 
I _think_ it should work with the real wxControlContainer from 
wxPython/wxWindows:

    def AcceptsFocusFromKeyboard(self):
        """This control should never accept focus"""
        return false

for the controls you don't want to accept focus.  Afraid I'm too busy 
getting ready to leave for the conference to check it, but hopefully 
it'll help.

Enjoy,
Mike

Robin Dunn wrote:

>  Ilia Kats wrote:
> 
> > Hi all,
> >
> > I have some controls grouped in some panel. I want some of them to be
> > skipped when presseing TAB. Can I do it somehow without catching the
> > wxSET_FOCUS event or/and without changing the wxPanel to some other
> > ctrl?!?
> 
> 
>  You could disable the controls, but that probably isn't what you want. 
>  I've often thought that having a SetAcceptsFocus(bool) method would be 
>  nice, but that isn't in there (yet) either...

_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/




---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Thread:
Ilia Kats
Robin Dunn
Mike C. Fletcher
Robin Dunn

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved