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

Traits ListEditor popup menus broken #55

Closed
corranwebster opened this issue May 10, 2013 · 3 comments
Closed

Traits ListEditor popup menus broken #55

corranwebster opened this issue May 10, 2013 · 3 comments

Comments

@corranwebster
Copy link
Contributor

When running a simple example of a list editor, clicking on the popup menu button causes an error as follows:

File "/Users/cwebster/src/ets/traitsui/traitsui/qt4/list_editor.py", line 280, in popup_menu
    proxy    = sender.proxy
AttributeError: 'NoneType' object has no attribute 'proxy'

Example code which tweaks this:

class SchoolClass(HasTraits):
    # List of the students in the class
    students = List(Str)

    view = View('
             Group(
                  Item('students', 
                       style='custom',
                       editor=ListEditor(rows=5),
                       show_label=False,
                  ),
                  show_border=True,
                  label='Students'
            ),      
            title = 'Class',
            width=300,
            height=200,
            resizable=True
        )
@sjagoe
Copy link
Contributor

sjagoe commented Jun 3, 2013

Shouldn't this be reported in https://github.com/enthought/traitsui ?

@sjagoe
Copy link
Contributor

sjagoe commented Jun 3, 2013

In fact is is already there: enthought/traitsui#109

@pberkes
Copy link
Contributor

pberkes commented Jun 3, 2013

Close as duplicate.

@pberkes pberkes closed this as completed Jun 3, 2013
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

No branches or pull requests

3 participants