Made the module import pygame only when needed.
This commit is contained in:
parent
1baac24427
commit
eaa9b87990
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from .pygame_tools import pgui
|
def __getattr__(name):
|
||||||
|
if name == "pgui":
|
||||||
|
from .pygame_tools import pgui
|
||||||
|
return pgui
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue