mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-16 16:57:07 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
29 lines
977 B
Python
29 lines
977 B
Python
|
|
pgMan = wx.propgrid.PropertyGridManager(
|
|
parent,
|
|
PGID,
|
|
# These and other similar styles are automatically
|
|
# passed to the embedded wx.PropertyGrid.
|
|
style = wx.PG_BOLD_MODIFIED|wx.PG_SPLITTER_AUTO_CENTER|
|
|
# Include toolbar.
|
|
wx.PG_TOOLBAR |
|
|
# Include description box.
|
|
wx.PG_DESCRIPTION |
|
|
# Include compactor.
|
|
wx.PG_COMPACTOR |
|
|
# Plus defaults.
|
|
wx.PGMAN_DEFAULT_STYLE
|
|
)
|
|
|
|
page = pgMan.AddPage("First Page")
|
|
page.Append(wx.propgrid.PropertyCategory("Category A1"))
|
|
page.Append(wx.propgrid.IntProperty("Number", wx.propgrid.PG_LABEL, 1))
|
|
page.Append(wx.propgrid.ColourProperty("Colour",wx.propgrid.PG_LABEL, wx.WHITE))
|
|
|
|
page = pgMan.AddPage("Second Page")
|
|
page.Append("Text", wx.propgrid.PG_LABEL, "(no text)")
|
|
page.Append(wx.propgrid.FontProperty("Font",wx.propgrid.PG_LABEL))
|
|
|
|
# Display a header above the grid
|
|
pgMan.ShowHeader()
|