Skip to content

widgets: change dropdown style to readonly#946

Open
simonsbench wants to merge 1 commit into
chriskiehl:1.0.8-releasefrom
simonsbench:issue-925-make-dropdowns-read-only
Open

widgets: change dropdown style to readonly#946
simonsbench wants to merge 1 commit into
chriskiehl:1.0.8-releasefrom
simonsbench:issue-925-make-dropdowns-read-only

Conversation

@simonsbench

Copy link
Copy Markdown

The Dropdown widget's wx.ComboBox creation used the wx.CB_DROPDOWN style flag,
which allows selection but also makes the selection editable. wx.CB_READONLY
allows selection but without editing, so the selection will always be in the
enumerated choice. See: https://docs.wxpython.org/wx.ComboBox.html#wx-combobox

Fixes: #925

The Dropdown widget's wx.ComboBox creation used the wx.CB_DROPDOWN style flag,
which allows selection but also makes the selection editable. wx.CB_READONLY
allows selection but without editing, so the selection will always be in the
enumerated choice. See: https://docs.wxpython.org/wx.ComboBox.html#wx-combobox

Fixes: chriskiehl#925
@simonsbench

Copy link
Copy Markdown
Author
DROPDOWN_options_are_editable READONLY_options_are_not_editabe

See dropdown options as selectable but editable before the style fix, and then only selectable after the fix.

@simonsbench

Copy link
Copy Markdown
Author

(I found this discussion about 1.0.9 (#773), and it sounds like it isn't a good release candidate. I'll issue bug fixes that aren't feature improvements against 1.0.8-release, as this makes releasing them easy.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant