Rename Properties and Items methods so the same-named properties don’t cause a build warning

This commit is contained in:
Robin Dunn
2017-03-13 15:47:42 -07:00
parent 76df4153bb
commit 539f9d1f82
2 changed files with 4 additions and 5 deletions

View File

@@ -429,7 +429,7 @@ def run():
""")
c.addPyMethod('Properties', '(self)',
c.addPyMethod('_Properties', '(self)',
doc="""\
This attribute is a pythonic iterator over all properties in
this `PropertyGrid` property container. It will only skip
@@ -447,10 +447,10 @@ def run():
yield it.GetProperty()
it.Next()
""")
c.addPyProperty('Properties', 'Properties')
c.addPyProperty('Properties', '_Properties')
c.addPyMethod('Items', '(self)',
c.addPyMethod('_Items', '(self)',
doc="""\
This attribute is a pythonic iterator over all items in this
`PropertyGrid` property container, excluding only private child
@@ -468,7 +468,7 @@ def run():
yield it.GetProperty()
it.Next()
""")
c.addPyProperty('Items', 'Items')
c.addPyProperty('Items', '_Items')
#----------------------------------------------------------

View File

@@ -20,7 +20,6 @@ DOCSTRING = ""
ITEMS = [ 'wxPropertyGridHitTestResult',
'wxPropertyGridIteratorBase',
'wxPropertyGridIterator',
#'wxPropertyGridConstIterator', # probably not needed in Python...
'wxPGVIterator',
'wxPropertyGridPageState',
]