Skip to content

Call HasPrivateTraits.__init__() in GroupEditor.__init__#1674

Merged
aaronayres35 merged 5 commits into
masterfrom
fix-GroupEditor-__init__
Jun 21, 2021
Merged

Call HasPrivateTraits.__init__() in GroupEditor.__init__#1674
aaronayres35 merged 5 commits into
masterfrom
fix-GroupEditor-__init__

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

@aaronayres35 aaronayres35 commented May 19, 2021

Part of #1673

This PR takes the simpler quick fix approach as mentioned in this comment: #1673 (comment)

It is certainly worth the investigation into the alternate approach described in that comment. This was just a very simple fix that could be done in the short term

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst)

@rahulporuri rahulporuri self-requested a review May 20, 2021 01:26
Copy link
Copy Markdown
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.

LGTM

Comment thread traitsui/qt4/ui_panel.py
rahulporuri pushed a commit that referenced this pull request Jun 21, 2021
see #1674

	modified:   traitsui/qt4/ui_panel.py
@rahulporuri
Copy link
Copy Markdown
Contributor

still LGTM

@aaronayres35 aaronayres35 merged commit 190b683 into master Jun 21, 2021
@aaronayres35 aaronayres35 deleted the fix-GroupEditor-__init__ branch June 21, 2021 12:42
rahulporuri pushed a commit that referenced this pull request Jul 7, 2021
* FIX : Add missing call to __init__ in super class

* FIX : Add missing call to __init__ in super class

* FIX : Add missing call to __init__ in super class

* FIX : Add missing call to super __init__

and fix a flake8 error

	modified:   traitsui/editors/array_editor.py
	modified:   traitsui/qt4/ui_panel.py

* DEV : Undo change in qt4 GroupEditor

see #1674

	modified:   traitsui/qt4/ui_panel.py

* CLN : Pass args to __init__ call

Previously, we were setting traits/attributes before calling __init__ on
the objects, which setup the traits machinery. Instead, this commit
passes the arguments to __init__, which feels like the right thing to do

	modified:   traitsui/editors/array_editor.py
	modified:   traitsui/editors/tuple_editor.py
	modified:   traitsui/qt4/ui_panel.py
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