Made the module import pygame only when needed.

This commit is contained in:
The Wobbler 2025-01-09 16:27:19 +01:00
parent 1baac24427
commit eaa9b87990

View file

@ -1,4 +1,7 @@
#!/usr/bin/python3
from .pygame_tools import pgui
def __getattr__(name):
if name == "pgui":
from .pygame_tools import pgui
return pgui