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
Note that at startup the input is not editable. If there is a print statement, it outputs False.
Click on "Toggle readonly". The input is now editable, and print(self.multiline_input.readonly) will return True after the toggle is executed.
Expected behavior
By default (when readonly parameter is not provided to MultilineTextInput, it should be editable. Setting multiline_input.readonly to True should make it read-only. Settign it to False should make it editable.
Screenshots
No response
Environment
Operating System: iOS, "iPhone 14"
Python version: 3.8
Software versions:
Briefcase: 0.3.13
Toga: 0.3.0
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks for the report - a fairly obvious mistake (and fix). We should be auditing MultilineTextInput in the near future; but if you want to submit a PR, we'd be happy to merge it.
Describe the bug
For iOS,
readonly=False
makesMultilineTextInput
read-only.readonly=True
makes it editable.Steps to reproduce
print(self.multiline_input.readonly)
to some places, likestartup
method, or inreadonly_toggle_pressed
before and after the change.print
statement, it outputsFalse
."Toggle readonly"
. The input is now editable, andprint(self.multiline_input.readonly)
will returnTrue
after the toggle is executed.Expected behavior
By default (when
readonly
parameter is not provided toMultilineTextInput
, it should be editable. Settingmultiline_input.readonly
toTrue
should make it read-only. Settign it toFalse
should make it editable.Screenshots
No response
Environment
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: