From 34451c3f4cacee9b2df3b0dff68e6539f5754bc4 Mon Sep 17 00:00:00 2001 From: frank Date: Sat, 4 Feb 2023 15:19:36 -0500 Subject: [PATCH] customize import behavior --- pgfw/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pgfw/__init__.py b/pgfw/__init__.py index e69de29..5d8e8ca 100644 --- a/pgfw/__init__.py +++ b/pgfw/__init__.py @@ -0,0 +1,9 @@ +# __init__.py +# +# Import all classes from module files, making them accessible through `pgfw.CLASSNAME` + +# Game imports most (all?) of PGFW, so those class become accessible as well (?) +from .Game import * + +# Not sure why but pgfw.GameChild causes a module error without importing Animation directly +from .Animation import *