[wxPython] Dropdown wxCheckListBox

Hello wxpython-users,

Can anybody tell me if there is a wxCheckListBox that dropdowns like
wxChoice? Any suggestions about how to implement this
will be appreciated.

···

--
Best regards,
alienoid mailto:alienoid@is.lg.ua

Can anybody tell me if there is a wxCheckListBox that dropdowns like
wxChoice?

Not currently.

Any suggestions about how to implement this
will be appreciated.

You could get pretty close by putting a wxCheckListBox on a wxPopupWindow
when you want to show it.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Hi Robin et al.,

some notes to wxCheckListBox under wxGTK 2.3.2/wxPy 2.3.2.1:

- This control is really gly on gtk :frowning:
- wxMenuItem.SetFont() seems not to be supported, but isn't ignored
  unlike label implies:

Traceback (most recent call last):
  File "./wxCheckListBox.py", line 40, in OnDoPopup
    item.SetFont(nf)
AttributeError: wxMenuItem instance has no attribute 'SetFont'
Traceback (most recent call last):
  File "./wxCheckListBox.py", line 40, in OnDoPopup
    item.SetFont(nf)
AttributeError: wxMenuItem instance has no attribute 'SetFont'

- EVT_RIGHT_UP isn't emitted on the wxCheckListBox itself.
  Is this expected behaviour?

BTW, what's up on the wxMenuItem.SetBitmap() front?

Cheers,
  Hans-Peter

···

On Saturday, 16. March 2002 22:10, Robin Dunn wrote:

> Can anybody tell me if there is a wxCheckListBox that dropdowns like
> wxChoice?

Not currently.

> Any suggestions about how to implement this
> will be appreciated.

You could get pretty close by putting a wxCheckListBox on a wxPopupWindow
when you want to show it.

Saturday, March 16, 2002, 11:10:58 PM, Robin Dunn wrote:

Can anybody tell me if there is a wxCheckListBox that dropdowns like
wxChoice?

Not currently.

Any suggestions about how to implement this
will be appreciated.

You could get pretty close by putting a wxCheckListBox on a wxPopupWindow
when you want to show it.

Thanks for advice
I put it on wxPopupWindow but now this dropdown wxCheckListBox doesn't
react on mouse clicks and I can't check boxes. How can I solve it? (I
used wxPopupTransientWindow)

···

--
Best regards,
alienoid mailto:alienoid@is.lg.ua

some notes to wxCheckListBox under wxGTK 2.3.2/wxPy 2.3.2.1:

- This control is really gly on gtk :frowning:

Yep. I'm sure a patch for a nicer one would be accepted.

- wxMenuItem.SetFont() seems not to be supported, but isn't ignored
  unlike label implies:

This and several other methods of wxMenuItem (that it inherits from
wxOwnerDrawn) are only available on MSW.

BTW, what's up on the wxMenuItem.SetBitmap() front?

This one too. There has been talk of adding these to wxGTK but nobody has
done it yet.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

> You could get pretty close by putting a wxCheckListBox on a

wxPopupWindow

> when you want to show it.

Thanks for advice
I put it on wxPopupWindow but now this dropdown wxCheckListBox doesn't
react on mouse clicks and I can't check boxes. How can I solve it? (I
used wxPopupTransientWindow)

Please send a small sample to play with.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!