Another thing, a little obscure, not my clearest; ironing out signature.
[Reposting]
filen= 'guis/wxFormBuilder/crawler gui.xrc'
conts= DR.drawnread( filen, "MyFrame1" )
#load 8 (more) copies of m_bitmap1
bitmaps= DR.controlarray( conts.m_bitmap1, filen, 'm_bitmap1', 8 )
#load 11 (more) copies of m_button30
buttons= DR.controlarray( conts.m_button30, filen, 'm_button30', 11
)
To create a "many small"-style array of controls, only create one with the
XRC designer and load it multiple times.
Bind the array (multiple sequential binds) with the drbindarray wrapper.
The index in the array, the individual control (equivalent to
controlindex.index( control ) ), and the event object instance are passed to
the sink.
@DR.drbindarray( buttons, wx.EVT_BUTTON )
def ccclick( index, control, event ):
print "Clicked on %i."% index
Submitted for demo and/or library.