mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Type hints for Window class variables
This commit is contained in:
parent
3bf5ce5776
commit
2b67aa0e01
1 changed files with 5 additions and 6 deletions
|
@ -16,17 +16,16 @@ if TYPE_CHECKING:
|
||||||
|
|
||||||
|
|
||||||
class Window(PygletWindow):
|
class Window(PygletWindow):
|
||||||
fullscreen = False
|
fullscreen: bool = False
|
||||||
resizable = True
|
resizable: bool = True
|
||||||
gl_version = (3, 3)
|
gl_version: tuple[int, int] = (3, 3)
|
||||||
vsync = True
|
vsync: bool = True
|
||||||
cursor = True
|
cursor: bool = True
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
scene: Scene,
|
scene: Scene,
|
||||||
size: tuple[int, int] = (1280, 720),
|
size: tuple[int, int] = (1280, 720),
|
||||||
**kwargs
|
|
||||||
):
|
):
|
||||||
super().__init__(size=size)
|
super().__init__(size=size)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue