bro
This commit is contained in:
1 parent
de41a02749
commit
9af09cebd3
764 files changed
+54218
-78859
No files matched your search
@@ -26,15 +26,16 @@ pygame version without importing the main pygame module.
|
||||
The python version information should always compare greater than any previous
|
||||
releases. (hmm, until we get to versions > 10)
|
||||
"""
|
||||
from pygame.base import get_sdl_version
|
||||
|
||||
from pygame.base import __version__, get_sdl_version
|
||||
|
||||
###############
|
||||
# This file is generated with version.py.in
|
||||
##
|
||||
|
||||
class SoftwareVersion(tuple):
|
||||
"""
|
||||
A class for storing data about software versions.
|
||||
"""
|
||||
|
||||
__slots__ = ()
|
||||
fields = "major", "minor", "patch"
|
||||
|
||||
@@ -52,24 +53,20 @@ class SoftwareVersion(tuple):
|
||||
minor = property(lambda self: self[1])
|
||||
patch = property(lambda self: self[2])
|
||||
|
||||
|
||||
class PygameVersion(SoftwareVersion):
|
||||
"""
|
||||
Pygame Version class.
|
||||
"""
|
||||
|
||||
|
||||
class SDLVersion(SoftwareVersion):
|
||||
"""
|
||||
SDL Version class.
|
||||
"""
|
||||
|
||||
|
||||
_sdl_tuple = get_sdl_version()
|
||||
SDL = SDLVersion(_sdl_tuple[0], _sdl_tuple[1], _sdl_tuple[2])
|
||||
|
||||
ver = __version__ # pylint: disable=invalid-name
|
||||
vernum = PygameVersion(*map(int, ver.split(".")[:3]))
|
||||
ver = "2.6.1" # pylint: disable=invalid-name
|
||||
vernum = PygameVersion(2, 6, 1)
|
||||
rev = "" # pylint: disable=invalid-name
|
||||
|
||||
__all__ = ["SDL", "ver", "vernum", "rev"]
|
||||
Reference in new issue
Block a user