mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-13 15:27:06 +01:00
13 lines
483 B
Python
13 lines
483 B
Python
|
|
# Register editor class - needs only to be called once
|
|
multiButtonEditor = SampleMultiButtonEditor()
|
|
wx.propgrid.PropertyGrid.RegisterEditorClass(multiButtonEditor)
|
|
|
|
# Insert the property that will have multiple buttons
|
|
propGrid.Append(
|
|
wx.propgrid.LongStringProperty("MultipleButtons", wx.propgrid.PG_LABEL))
|
|
|
|
# Change property to use editor created in the previous code segment
|
|
propGrid.SetPropertyEditor("MultipleButtons", multiButtonEditor)
|
|
|