Using multiple BitmapComboBoxes

Using wxPython on Mac OSX 10.4, wx version 2.8.10.1 Python 2.5.2

I have a 5 BitmapComboBoxes (BCBs) on a panel. They allow a user to choose a set of 5 icons.

When you select the first BCB, that widget pops up its mini window showing the available bmp's and you select one. Fine.

To chose the next BCB unexpectedly takes two clicks. I assume the first click gets the attention of the panel, the second activates the BCB so the control's mini-window can show up again.

The extra click is awkward, and feels like an ignored click to the user. I guess the control creates a little mini panel, draws the bmp's on it, then one can be selected, but focus remains on that now-hidden mini-window full of bmps.

Can I do something to automatically bring focus back on the panel full of controls to save the extra unexpected click. I tried this in the event action for the BCB

  thing = evt.GetEventObject()
  thing.GetParent().SetFocus()

that doesn't help. Not sure what else I can try. Any suggestion is appreciated.

- Ross.

Ross wrote:

Using wxPython on Mac OSX 10.4, wx version 2.8.10.1 Python 2.5.2

I have a 5 BitmapComboBoxes (BCBs) on a panel. They allow a user to choose a set of 5 icons.

When you select the first BCB, that widget pops up its mini window showing the available bmp's and you select one. Fine.

To chose the next BCB unexpectedly takes two clicks. I assume the first click gets the attention of the panel, the second activates the BCB so the control's mini-window can show up again.

Looks like the first click is shifting the focus to the combo ctrl, and that it doesn't launch the popup unless it already has the focus. (You can see the same thing if you have other widgets on the panel and one of them starts with the focus.) I'm fairly sure that is not intended behavior so please create a ticket for this in wxTrac.

···

--
Robin Dunn
Software Craftsman

Thx for looking at that and confirming that it shouldn't work that
way. Haven't tried wxTrac before, but will find it and open a
ticket ...

Ross.

···

On 7-Jul-09, at 9:04 PM, Robin Dunn wrote:

Ross wrote:

Using wxPython on Mac OSX 10.4, wx version 2.8.10.1 Python 2.5.2

I have a 5 BitmapComboBoxes (BCBs) on a panel. They allow a user to
choose a set of 5 icons.

When you select the first BCB, that widget pops up its mini window
showing the available bmp's and you select one. Fine.

To chose the next BCB unexpectedly takes two clicks. I assume the
first click gets the attention of the panel, the second activates the
BCB so the control's mini-window can show up again.

Looks like the first click is shifting the focus to the combo ctrl,
and
that it doesn't launch the popup unless it already has the focus.
(You
can see the same thing if you have other widgets on the panel and
one of
them starts with the focus.) I'm fairly sure that is not intended
behavior so please create a ticket for this in wxTrac.

--
Robin Dunn
Software Craftsman
http://wxPython.org

>