enthought / pyface

pyface: traits-capable windowing framework
Other
105 stars 55 forks source link

Bug report: 'EditorAreaWidget' object has no attribute 'setCurrentWidget' #1162

Open ctangell opened 1 year ago

ctangell commented 1 year ago

Environment

OS: Windows 10/Mac 12.6 (likely all os) Python version: 3.8 Toolkit: Qt Qt API: PySide6

Description

When trying to use the underlying EditorAreaWidget, got the following bug:

'EditorAreaWidget' object has no attribute 'setCurrentWidget'

  File "/Users/cangell/.edm/envs/<env-name>/lib/python3.8/site-packages/pyface/ui/qt4/tasks/split_editor_area_pane.py", line 155, in activate_editor
    active_tabwidget.setCurrentWidget(editor.control)

Steps to Reproduce

import EditorAreaWidget, try to access setCurrentWidget on the EditorAreaWidget