Skip to content

Ch 3: self.destroy in CategoryWindow hangs app, self.close works #12

@cortical-iv

Description

@cortical-iv

With the following line the new category widget causes my app to hang when I press cancel:

        self.cancel_btn = qtw.QPushButton('Cancel',
                                          clicked=self.destroy)

This is from calendar_app.py:
https://github.com/PacktPublishing/Mastering-GUI-Programming-with-Python/blob/master/Chapter03/calendar_app.py#L30

When I change destroy to close it works fine. I also just noticed in the book it has close (p 76), so probably just a version glitch. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions