Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle Fields (CheckBoxField, RadioButtonField, etc.) #962

Merged
merged 3 commits into from
Jun 24, 2021

Conversation

corranwebster
Copy link
Contributor

This PR adds additional fields with toggling behaviour: check boxes, radio buttons, and toggle buttons.

The purpose of this functionality is to abstract the common API to permit an eventual refactor of the TraitsUI BooleanEditor to allow styles other than checkboxes.

@rahulporuri rahulporuri self-requested a review June 23, 2021 09:36
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM with a couple of small comments


The :py:class:`~pyface.fields.i_toggle_field.IToggleField` interface holds a
boolean :py:attr:`~pyface.fields.i_spin_field.IToggleField.value` that is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be

Suggested change
boolean :py:attr:`~pyface.fields.i_spin_field.IToggleField.value` that is
boolean :py:attr:`~pyface.fields.i_toggle_field.IToggleField.value` that is

Comment on lines 10 to 12
#
# Author: Enthought, Inc.
# Description: <Enthought pyface package component>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we really need these or were they copy-pasted from some other module?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasted. I don't think we've done the header normalization for pyface: some of the copyright dates were also out of sync.

- correct references in docs
- fixes to copyright headers
@corranwebster corranwebster merged commit eeef6f9 into master Jun 24, 2021
@corranwebster corranwebster deleted the feat/toggle-fields branch June 24, 2021 12:26
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.

2 participants