Skip to content

Commit edd2166

Browse files
committed
Update gen_widgets.py
1 parent d769d56 commit edd2166

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/pyqt/gen_widgets.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,8 @@ def generate_sip_for_class__1(header_content, filename=""):
476476
sip_return_type = return_type_raw
477477
parsed_params = parse_parameters(params_str)
478478
PyName = ""
479-
if 0: # classmethods.get(method_name):
480-
index = classmethods.get(method_name)
481-
classmethods[method_name] += 1
482-
PyName = f"/PyName={method_name}{index}/"
479+
if ("takeOverNativeEvent" == method_name) and (sys.platform != "win32"):
480+
continue
483481
elif method_name == "addPageNode" and "keyPoints" in params_str:
484482
print(match.groups())
485483
PyName = f"/PyName={method_name}KeyPoints/"

0 commit comments

Comments
 (0)