I have a wxSplitterWindow with a tree control in the left hand pane and a
group of edit boxes in the right hand pane. When the right hand pane has
focus u can use the tab key to cycle through which edit box has focus.
What I would like to be able to do is to have the tree control become part of
this tab list. i.e. when the last edit box has focus and the tab key is
pressed the tree control gets focus. If the tab key is pressed again the
first edit box gets focus.
I would like to avoid keeping another list of all the controls, and having to
keep track of all the tab key events when wxPython appears to be doing this
already.
I have a similar setup and have not done anything special to get this
functionality, it just works exactly like that in my app.
···
On Sat, Dec 14, 2002 at 07:18:57PM +1300, Brian Bates wrote:
I have a wxSplitterWindow with a tree control in the left hand pane and a
group of edit boxes in the right hand pane. When the right hand pane has
focus u can use the tab key to cycle through which edit box has focus.
What I would like to be able to do is to have the tree control become part of
this tab list. i.e. when the last edit box has focus and the tab key is
pressed the tree control gets focus. If the tab key is pressed again the
first edit box gets focus.
I would like to avoid keeping another list of all the controls, and having to
keep track of all the tab key events when wxPython appears to be doing this
already.
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
> I have a wxSplitterWindow with a tree control in the left hand pane and a
> group of edit boxes in the right hand pane. When the right hand pane has
> focus u can use the tab key to cycle through which edit box has focus.
> What I would like to be able to do is to have the tree control become
> part of this tab list. i.e. when the last edit box has focus and the tab
> key is pressed the tree control gets focus. If the tab key is pressed
> again the first edit box gets focus.
> I would like to avoid keeping another list of all the controls, and
> having to keep track of all the tab key events when wxPython appears to
> be doing this already.
I have a similar setup and have not done anything special to get this
functionality, it just works exactly like that in my app.
On Sun, Dec 15, 2002 at 12:01:30PM +1300, Brian Bates wrote:
> > I have a wxSplitterWindow with a tree control in the left hand pane and a
> > group of edit boxes in the right hand pane. When the right hand pane has
> > focus u can use the tab key to cycle through which edit box has focus.
> > What I would like to be able to do is to have the tree control become
> > part of this tab list. i.e. when the last edit box has focus and the tab
> > key is pressed the tree control gets focus. If the tab key is pressed
> > again the first edit box gets focus.
> > I would like to avoid keeping another list of all the controls, and
> > having to keep track of all the tab key events when wxPython appears to
> > be doing this already.
> I have a similar setup and have not done anything special to get this
> functionality, it just works exactly like that in my app.
Is y'r setup working under Windows or Linux?
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
Hmmm...
I'm using version 2.2.7 of wxPython, and python 2.1.3.
What are y'r versions?
···
On Sun, 15 Dec 2002 12:14, you wrote:
> > > I would like to avoid keeping another list of all the controls, and
> > > having to keep track of all the tab key events when wxPython appears
> to > > be doing this already.
> > I have a similar setup and have not done anything special to get this
> > functionality, it just works exactly like that in my app.
> Is y'r setup working under Windows or Linux?
Python 2.2.2 on both systems and wxPython 2.3.2.1 on windows and until a
few hours ago also on linux, now I have 2.3.3.1 on linux, where it also
works, although my left-side tree is no longer given the width in the
splitter that it used to - I can still drag it to the right size though.
Anybody know if this is no longer sufficient or valid:
The left side is totally "collapsed" to a width of just about 0..
···
On Sun, Dec 15, 2002 at 12:47:43PM +1300, Brian Bates wrote:
> > > > I would like to avoid keeping another list of all the controls, and
> > > > having to keep track of all the tab key events when wxPython appears
> > to > > be doing this already.
> > > I have a similar setup and have not done anything special to get this
> > > functionality, it just works exactly like that in my app.
> > Is y'r setup working under Windows or Linux?
> Both actually..
Hmmm...
I'm using version 2.2.7 of wxPython, and python 2.1.3.
What are y'r versions?
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
Python 2.2.2 on both systems and wxPython 2.3.2.1 on windows and until a
few hours ago also on linux, now I have 2.3.3.1 on linux, where it also
works, although my left-side tree is no longer given the width in the
splitter that it used to - I can still drag it to the right size though.
Anybody know if this is no longer sufficient or valid:
On Sat, Dec 14, 2002 at 04:02:07PM -0800, Robin Dunn wrote:
>self.splitter.SplitVertically(self.tree, self.panel)
>self.splitter.SetSashPosition(180, true)
>self.splitter.SetMinimumPaneSize(20)
>??
>The left side is totally "collapsed" to a width of just about 0..
Do this instead:
self.splitter.SplitVertically(self.tree, self.panel, 180)
self.splitter.SetMinimumPaneSize(20)
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41