Page MenuHome

Troubles to create EnumProperty with one element
Closed, ArchivedPublic

Description

Try to use mine striped down addon

: in File Selector window it trying to create drop down list with one element (in original code element count varies with situation).
When I try to use it then in console I get:

TypeError: EnumProperty(...): expected a tuple containing (identifier, name, description) and optionally an icon name and unique number
File "/home/senbuvis/.config/blender/2.76/scripts/addons/kdenlive_motion_vector_eksportas/__init__.py", line 23, in pildyk_sarasa

But if I add coma at line #24 end:

		return ('a', 'b', 'c'),

After that Blender throws no error and in File selector window I get list with one element as expected.

System Information
4.4.0-38-generic; 64 bit; Kubuntu 16.04
also

generated by Blender

P.S. sorry for my bad English

Event Timeline

Valdas (Zmogas) changed the task status from Unknown Status to Archived.Oct 15 2016, 6:50 PM