Dynamo icon indicating copy to clipboard operation
Dynamo copied to clipboard

TypeError : No method matches given arguments for Show(), called on TaskDialog Object

Open ekkonap opened this issue 2 years ago • 1 comments

Dynamo Version

DYNAMO v.2.18.1

Revit Version

Revit 2024.1

Operating System

Windows 10

What did you do?

Wrote the following Python function. Works in IronPython2, fails in CPython3 on second to last line, when calling Show() Fixed the enumeration problem for TaskDialogResult.None, that's not the issue as far as I can see.

def dialog(report, expandedContent): title = 'Controle opdracht '+opdracht dialog = TaskDialog(title) dialog.MainInstruction = 'Lees voor feedback het volgende rapport' dialog.MainContent = report dialog.ExpandedContent = expandedContent dialog.TitleAutoPrefix = False dialog.AllowCancellation = True dialog.CommonButtons = TaskDialogCommonButtons.Ok #dialog.VerificationText = 'Verification Text' #dialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink1, 'Command Button Text', 'Command Button Sub Text') dialog.DefaultButton = 0 #TaskDialogResult.None -> Enumeration .None werkt niet in Dynamo Python3.X result = dialog.Show() #werkt niet in Dynamo Python3.X!!! return result

What did you expect to see?

A TaskDialog

What did you see instead?

TypeError : No method matches given arguments for Show(), called on TaskDialog Object

Stacktrace/logs

https://github.com/DynamoDS/Dynamo/wiki/Work-in-progress-to-improve-Python-3-support -> TypeError : No method matches given arguments (Fixed in 2.8)

Details

No response

ekkonap avatar Nov 15 '23 14:11 ekkonap

tracked internally DYN-6443

avidit avatar Nov 16 '23 18:11 avidit