Skip to content

Unify QApplication.instance() checks #242

@corranwebster

Description

@corranwebster

There are a number of places where we do something like the following:

app = QApplication.instance()
if app is None:
    app = QApplication(*args, **kwargs)

We should refactor so that all such calls go through get_app_qt4 (https://github.com/enthought/pyface/blob/master/pyface/util/guisupport.py#L111) or something similar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions