mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
Silently ignore missing methods.
This commit is contained in:
@@ -388,9 +388,12 @@ def fixTextClipboardMethods(klass):
|
||||
|
||||
:param ClassDef klass: The class to modify.
|
||||
"""
|
||||
for method in ('Cut', 'Copy', 'Paste', 'Undo', 'Redo'):
|
||||
klass.find(method).isVirtual = True
|
||||
klass.find("Can{}".format(method)).isVirtual = True
|
||||
for name in ('Cut', 'Copy', 'Paste', 'Undo', 'Redo'):
|
||||
for method in (name, "Can{}".format(name)):
|
||||
try:
|
||||
klass.find(method).isVirtual = True
|
||||
except extractors.ExtractorError:
|
||||
pass
|
||||
|
||||
def removeVirtuals(klass):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user