init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
32
.venv/lib/python3.8/site-packages/pygame/event.pyi
Normal file
32
.venv/lib/python3.8/site-packages/pygame/event.pyi
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
from typing import Any, Dict, List, Optional, SupportsInt, Tuple, Union, overload
|
||||
|
||||
class Event:
|
||||
type: int
|
||||
__dict__: Dict[str, Any]
|
||||
__hash__: None # type: ignore
|
||||
@overload
|
||||
def __init__(self, type: int, dict: Dict[str, Any]) -> None: ...
|
||||
@overload
|
||||
def __init__(self, type: int, **attributes: Any) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
|
||||
_EventTypes = Union[SupportsInt, Tuple[SupportsInt, ...], List[SupportsInt]]
|
||||
|
||||
def pump() -> None: ...
|
||||
def get(
|
||||
eventtype: Optional[_EventTypes] = None,
|
||||
pump: Any = True,
|
||||
exclude: Optional[_EventTypes] = None,
|
||||
) -> List[Event]: ...
|
||||
def poll() -> Event: ...
|
||||
def wait(timeout: int = 0) -> Event: ...
|
||||
def peek(eventtype: Optional[_EventTypes] = None, pump: Any = True) -> bool: ...
|
||||
def clear(eventtype: Optional[_EventTypes] = None, pump: Any = True) -> None: ...
|
||||
def event_name(type: int) -> str: ...
|
||||
def set_blocked(type: Optional[_EventTypes]) -> None: ...
|
||||
def set_allowed(type: Optional[_EventTypes]) -> None: ...
|
||||
def get_blocked(type: _EventTypes) -> bool: ...
|
||||
def set_grab(grab: bool) -> None: ...
|
||||
def get_grab() -> bool: ...
|
||||
def post(event: Event) -> bool: ...
|
||||
def custom_type() -> int: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue