Is it possible to create a drop down in python code? You could in VBA, I don't remember what's terminology.example below.
This code will size and position an element on the map layout. What i would like is for the element type to be a drop down list for the various types.
def sizeposElm(elmName,elmType,elmWidth,elmHeight,elmX,elmY): """Element Name, Element Type, Element Width, Element Height, X Position, Y Position""" elm = arcpy.mapping.ListLayoutElements(mxd, elmType, elmName)[0] elm.elementWidth = elmWidth elm.elementHeight = elmHeight elm.elementPositionX = elmX elm.elementPositionY = elmY del elm sizeposElm("legend","DATAFRAME_ELEMENT" "GRAPHIC_ELEMENT" "LEGEND_ELEMENT" "MAPSURROUND_ELEMENT" "PICTURE_ELEMENT" "TEXT_ELEMENT"
Hi Wes,
Take a look at Creating a Python Add-In Combo Box.
Thanks for your response Jake. I was hoping for something more like code intellesense where i could create the above code and when i got to a known set of values i could just select them while typing in my code verses having to type or copy and paste them in every time.