You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, self.text does not have enabled property. I found only editable and selectable. Maybe a enabled property should set this two properties?. The only this that I can't reproduce is show a "gray disabled apparence" when enabled == false
Example code:
def set_enabled(self, enabled):
self.interface.readonly = not enabled
self.text.selectable = enabled
Expected Behavior
It should be possible disable/enable
MultiLineTextInput
in Cocoa.Current Behavior
Enable/Disable feature in
MultiLineTextInput
is not working. (ref: https://github.com/beeware/toga/blob/master/examples/multilinetextinput/multilinetextinput/app.py#L9)Additional Info
In this widget
self.native
is aNSScrollView
.set_enabled
is updatingself.native.enabled
but text widget lives inself.text
(https://github.com/beeware/toga/blob/master/src/cocoa/toga_cocoa/widgets/multilinetextinput.py#L20-L30)
Also,
self.text
does not have enabled property. I found onlyeditable
andselectable
. Maybe a enabled property should set this two properties?. The only this that I can't reproduce is show a "gray disabled apparence" when enabled == falseExample code:
Steps to reproduce
Run https://github.com/beeware/toga/blob/master/examples/multilinetextinput/multilinetextinput/app.py and press
toggle enabled
Your Environment
Python Version (list the specific version number)
3.7
Operating System and Version (select from the following and list the specific version number; if your OS is not listed, list that as well)
Toga Version (list the specific version number or git hash)
0.3.0.dev20
Toga Target (the type of app you are trying to generate)
The text was updated successfully, but these errors were encountered: