Skip to content

Commit

Permalink
Allow overriding wxSizer.InformFirstDirection()
Browse files Browse the repository at this point in the history
It seems this is required in order to implement a non-trivial custom Sizer.

Fixes #2452.
  • Loading branch information
swt2c committed Jan 26, 2025
1 parent 2adbeaa commit 1b5cc2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etgtools/tweaker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ def fixSizerClass(klass):
removeVirtuals(klass)
klass.find('CalcMin').isVirtual = True
klass.find('RepositionChildren').isVirtual = True
try:
klass.find('InformFirstDirection').isVirtual = True
except extractors.ExtractorError:
pass

# in the wxSizer class it is pure-virtual
if klass.name == 'wxSizer':
Expand Down

0 comments on commit 1b5cc2e

Please sign in to comment.