mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Fix names of base classes in Python classes when the base is from the binary modules.
This commit is contained in:
@@ -18,7 +18,7 @@ from datetime import datetime
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
sys.path.append(os.path.abspath('.'))
|
||||
sys.path.append('..')
|
||||
sys.path.append(os.path.abspath('..'))
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
|
||||
|
||||
@@ -638,6 +638,16 @@ class Class(ParentBase):
|
||||
if ' at ' in sup:
|
||||
sup = sup[0:sup.index(' at ')].strip()
|
||||
|
||||
if sup.startswith('wx._'):
|
||||
# take out the '_core' in things like 'wx._core.Control'
|
||||
parts = sup.split('.')
|
||||
if parts[1] == '_core':
|
||||
del parts[1]
|
||||
else:
|
||||
# or just the '_' otherwise
|
||||
parts[1] = parts[1][1:]
|
||||
sup = '.'.join(parts)
|
||||
|
||||
sortedSupClasses.append(sup)
|
||||
|
||||
sortedSupClasses.sort()
|
||||
|
||||
Reference in New Issue
Block a user