From: <gre...@co...> - 2004-09-11 23:48:25
|
I am wondering if I have run into a bug. In the textarea and textfield components, if I create them during runtime, and set enabled to false, it does not get grayed out and I am still able to edit the component. Additionally, I tried setting editable to false and nothing seemed to change from that either, as I appeared to be able to still edit the text. By the way, what is the difference between editable and enabled? Version Info: PythonCard version: 0.8 wxPython version: 2.5.2.7 Python version: 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] Platform: win32 Here's the part of my code where I am creating the textfield. (sorry if email bungles the tabs.) editable='False' tooltip='' widgetDefn={'type':'TextField', 'name':'txt'+ column[0], 'position':(xPosWidget, yPos), 'text':'', 'editable':editable, 'enabled':editable, 'toolTip':tooltip, 'size':(20,-1)} self.components[widgetDefn['name']]=widgetDefn |