AjaxVM / pyggel

PYGGEL (PYthon Graphical Game Engine and Libraries)
1 stars 0 forks source link

pygame.init() is bad #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
the problem:
on Linux, closing the window causes an uninterruptible 'python.exe' process.
(the window will no longer display on re-run)

even when I was on Windows, I've had many problems using pygame.init()

the fix:
pygame.display.init()

this fixed a ton of issues with my program, 
and has even gotten a blank window to display on this issue.

Original issue reported on code.google.com by tcll5850 on 3 Dec 2014 at 4:31

GoogleCodeExporter commented 9 years ago
update:
the blank window was caused by the uninterruptable process.
it works now.

Original comment by tcll5850 on 3 Dec 2014 at 5:08

GoogleCodeExporter commented 9 years ago
confirmed!
the issue hasn't happened since.

in pyggel/view.py line 146 in init() change:

    pygame.init()

to:

    pygame.display.init()
    pygame.font.init()

Original comment by tcll5850 on 4 Dec 2014 at 1:55