show EnumProperty in node Just like the Math node I want to create options like this:



However, in the original code of the math node, I can't find a line to make the options show up in the node. How do I do that?

import bpy
from bpy.props import *
from ... base_types.node import AnimationNode
from ... tree_info import keepNodeLinks, keepNodeState


operationItems = [
    ("ADD", "Add", "A + B", "", 0),
    ("SUBTRACT", "Subtract", "A - B", "", 1),
    ("MULTIPLY", "Multiply", "A * B", "", 2),
    ("RECIPROCAL", "Reciprocal", "1 / A", "", 21),
    ("SNAP", "Snap", "snap A", "", 22)]


class EnumPropertyTest(bpy.types.Node, AnimationNode):
    bl_idname = "an_EnumPropertyTest"
    bl_label = "EnumProperty Test"

    def operationChanged(self, context):
        self.recreateInputSockets()
        executionCodeChanged()

    operation = EnumProperty(name="Operation", default="MULTIPLY",
                         items=operationItems, update=operationChanged)

    def create(self):
        pass

    def execute(self, write):
        pass

    @keepNodeState
    def recreateInputSockets(self):
        self.inputs.clear()


Now I have just this:



In case a quick link to the Math node helps:
https://github.com/JacquesLucke/animation_nodes/blob/master/nodes/number/float_math.py
If you want to draw properties into your node you have to implement the draw function:

def draw(self, layout):
    layout.prop(self, "operation", text = "Operation")