Donkyhotay / pgu

Automatically exported from code.google.com/p/pgu
GNU Lesser General Public License v2.1
0 stars 0 forks source link

TextArea: Add "editable" property #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The TextArea is currently not very suitable for displaying multiple line text 
that the user is not supposed to edit.  While one can emulate this with labels, 
the developer would have to manually split the string and insert the labels 
correctly (which is a pain).

I have attached a patch to create an "editable" property to the TextArea that 
makes the uneditable, but still enabled.  The difference between "uneditable" 
and "disabled" is that the disabled TextArea will be grayed out (blurred?), 
whereas the "uneditable" will look like an editable TextArea without focus.

Despite being "focusable = False", the TextArea still receives focus.  In my 
patch, I have merely "worked around it" by ignoring focus in those cases.

Thank you for considering.

Original issue reported on code.google.com by NThykier@gmail.com on 18 Dec 2012 at 9:01

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in the repository

Original comment by peter.ro...@gmail.com on 25 Dec 2012 at 4:47