Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Pythn to TextWrap

$
0
0
I am using MapTips (Layer Properties > Display > Display Expression). I would like to use the advanced expression window to write a script using Python TextWrap. Field string needs to be wrapped +-40 characters with no word split. Attribute field is named BODY. Unfortunately, I find the python.org page (syntax/example) much harder to read than ESRI's. Has anyone attempted this?

Code:

def FindLabel ( [Body] ):
  return [Body]


Viewing all articles
Browse latest Browse all 2485

Trending Articles