[wxPython] 2nd take on a new composite control

Hi Robin et al.,

attached is a new version, now plugging the controls on a panel:

SpinCombo composite control
- interface is somewhat similar to EditableListBox (Get/SetStrings())
- provides callback hooks for sorting/input checking (nice with boa)
- customisable sort/list order via subclassing

Based on SpinCombo, there's a numeric NSpinCombo and an auto completion
class ACSpinCombo available.

The downside is: dynamic resizing doesn't work anymore :frowning:
The matter is: how do I get the size events going?

Let me know, what do you think about it?

Cheers,
  Hans-Peter

spincombo.py (10.6 KB)

wxFrame2.py (6.22 KB)

Hi,

while working on a composite control derived from wxComboBox, I'm trying
to solve the dynamic resizing part by overlaying SetConstraints().
self.panel is the self contained parent of all other controls:

    def SetConstraints(self, constr):
        wxComboBox.SetConstraints(self, constr)
        # XXX: how resolve constraints dynamically?
        self.panel.SetConstraints(LayoutAnchors(self.panel, true, true, true, false))
        #self.panel.SetConstraints(LayoutAnchors(self.panel, constr.left, constr.top,
  #constr.right, constr.bottom))

It must be possible somehow, but I couldn't figure it out 8|

As always, any hints appreciated.

Read you,
  Hans-Peter