mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 05:47:09 +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.
22 lines
567 B
Python
22 lines
567 B
Python
|
|
config = wx.Config("MyAppName")
|
|
names = []
|
|
|
|
# first enum all entries
|
|
more, value, index = config.GetFirstEntry()
|
|
|
|
while more:
|
|
names.append(value)
|
|
more, value, index = config.GetNextEntry(index)
|
|
|
|
# ... we have all entry names in names...
|
|
|
|
# now all groups...
|
|
more, value, index = config.GetFirstGroup()
|
|
|
|
while more:
|
|
names.append(value)
|
|
more, value, index = config.GetNextGroup(index)
|
|
|
|
# ... we have all group (and entry) names in names...
|