From: <gre...@co...> - 2004-09-07 18:59:00
|
Hi, I can't seem to get the word wrap to happen in a textarea. It shows the portion of text that fits in the first row of the textarea but cuts off everything after that. I've included the code I'm using at the end of this email (ignore my email's word-wrapping if possible) Should I remove the existing '\r' s and '\n's from my text, could that be confusing the textarea? Thanks, Greg This is the definition: widgetDefn={'type':'TextArea', 'name':'txt'+ column[0], 'position':(xPosWidget, yPos), 'size':(255*9, NumRows*rowHeight), 'alignment':'left', 'border':'3d', 'editable':False, 'enabled':True, 'text':'', 'toolTip':'Values in this record field', 'visible':True} Here is where it is filled: self.components[item].text=str(row[widgetCount]) And row[widgetCount] text is below: 'I saw a truck today. There was a man with a beard driving it. It had a license plate that said "god". I found myself wondering if god was a ctually in that truck. The man looked kind of non-real. I drove up next to him but he didn\'t see me. Then he turned off onto 95. I really wanted to follow him but he was going south and I have to go north. And besides, we wouldn\'t ha ve a road for him to drive on if everyone spent all their time following him. \r ' |