[wxPython] Re: wxpython-users digest, Vol 1 #535 - 6 msgs

Subject: [wxPython] wxTextCtrl TAB bug in 2.3.2.1 (no problem in 2.3.1)
Date: Sun, 23 Dec 2001 07:01:22 -0800 (PST)
From: David Rushby <woodsplitter@rocketmail.com>
Reply-To: wxpython-users@lists.wxwindows.org
To: wxpython-users@lists.wxwindows.org

# This code demonstrates a wxTextCtrl TAB
# handling bug in wxPython 2.3.2.1.
# Basically, a wxTextCtrl with its style
# set to wxPROCESS_ENTER ceases to handle
# TAB traversal properly; a wxTextCtrl with
# default style works fine.

# The documentation gives no hint that the
# 2.3.2.1 behavior should be regarded as
# correct, and past versions of wxPython
# (e.g., 2.3.1) did not act this way.

[....snip....]

textTwo = wxTextCtrl(self, TEXT_TWO_ID,
                'text',
                pos=(10, 40),
                style=wxPROCESS_ENTER )

The style is wxTE_PROCESS_ENTER -- you've left out the 'TE_'. So you're setting the style to some random undefined thing... it's almost surprising that tab-handling is the only problem you're getting. :slight_smile:

Jeff Shannon
Technician/Programmer
Credit International