enthought / enthought/pyface

Unify QApplication.instance() checks

Open
#242 0 comments 0 reactions 0 assignees View on GitHub
Good First Issue type: enhancement
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.