enthought / enthought/pyface

Bug report: `from pyface.timer.api import PyfaceTimer`

Open
#1,262 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

The [docs](https://docs.enthought.com/pyface/timer.html) for the timer classes show examples using `from pyface.timer.api import PyfaceTimer`, but that import doesn't work:

Working on commit 46f700999284c8104fb2a5468f549677dfadf063:

```
Python 3.8.20 (default, Sep 7 2024, 06:33:13)
[Clang 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyface.timer.api import PyfaceTimer
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'PyfaceTimer' from 'pyface.timer.api' (/Users/mdickinson/Enthought/ETS/pyface/pyface/timer/api.py)
```

Importing from `pyface.timer.timer` works as expected.

```
>>> from pyface.timer.timer import PyfaceTimer
```

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.