Skip to content

Commit

Permalink
Merge pull request #688 from pathunstrom/keycodes-in-main-namespace
Browse files Browse the repository at this point in the history
Explicitly import keycodes and buttons.
  • Loading branch information
AstraLuma committed Feb 6, 2024
2 parents 8c90a77 + 75e2be4 commit 14410b5
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions ppb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,32 @@
Exports:
* :class:`~ppb_vector.Vector`
* :class:`Scene`
* :class:`Circle`
* :class:`Image`
* :class:`Sprite`
* :class:`RectangleSprite`
* :class:`~ppb_vector.Vector`
* :class:`Image`
* :class:`Circle`
* :class:`Ellipse`
* :class:`Square`
* :class:`Sound`
* :class:`Rectangle`
* :class:`Triangle`
* :mod:`events`
* :class:`Font`
* :class:`Text`
* :class:`Sound`
* :mod:`events`
* :mod:`buttons`
* :mod:`keycodes`
* :mod:`flags`
* :mod:`directions`
* :class:`Signal`
"""

import logging
import warnings
from sys import version_info
from typing import Callable

from ppb import directions
from ppb import events
from ppb_vector import Vector
from ppb.assets import Circle
from ppb.assets import Ellipse
Expand All @@ -55,9 +60,10 @@

__all__ = (
# Shortcuts
'Vector', 'Scene', 'Circle', 'Image', 'Sprite', 'RectangleSprite',
'Square', 'Sound', 'Triangle', 'events', 'Font', 'Text', 'directions',
'Rectangle', 'Ellipse', 'Signal',
'Scene', 'Sprite', 'RectangleSprite', 'Vector',
'Image', 'Circle', 'Ellipse', 'Square', 'Rectangle', 'Triangle',
'Font', 'Text', 'Sound',
'events', 'buttons', 'keycodes', 'flags', 'directions', 'Signal',
# Local stuff
'run', 'make_engine',
)
Expand Down

0 comments on commit 14410b5

Please sign in to comment.