Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/releases/upcoming/1674.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Call HasPrivateTraits.__init__() in GroupEditor.__init__ (#1674)
6 changes: 5 additions & 1 deletion traitsui/qt4/ui_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from pyface.qt import QtCore, QtGui

from traits.api import Any, Instance, Undefined
from traits.api import Any, HasPrivateTraits, Instance, Undefined
from traits.observation.api import match

from traitsui.api import Group
Expand Down Expand Up @@ -1259,6 +1259,10 @@ class GroupEditor(Editor):
def __init__(self, **traits):
""" Initialise the object.
"""
# We intentionally don't want to call Editor.__init__ here as
# GroupEditor does its own thing. However, we still want Traits
# machinery to be set up properly.
HasPrivateTraits.__init__(self, **traits)
Comment thread
rahulporuri marked this conversation as resolved.
self.trait_set(**traits)


Expand Down