Source code for

from __future__ import annotations
from typing import Any, TYPE_CHECKING
from import AbstractEvent

    from import XSpreadsheetDocument
    from import XSpreadsheet

class AbstractSheetArgs(AbstractEvent):
    __slots__ = ()

    def __init__(self, source: Any) -> None:

            source (Any): Event Source
        self.index = None = None
        self.doc = None
        self.sheet = None

    index: int | None
    """Gets/Sets the index of the event"""
    name: str | None
    """Gets/Sets name of the event"""
    doc: XSpreadsheetDocument | None
    """Gets/Sets document of the event"""
    sheet: XSpreadsheet | None
    """Gets/Sets spreadsheet of the event"""

[docs]class SheetArgs(AbstractSheetArgs): __slots__ = ("source", "_event_name", "event_data", "name", "index", "doc", "sheet", "_event_source", "_kv_data")
[docs] @staticmethod def from_args(args: AbstractSheetArgs) -> SheetArgs: """ Gets a new instance from existing instance Args: args (AbstractSheetArgs): Existing Instance Returns: SheetArgs: args """ eargs = SheetArgs(source=args.source) eargs._event_name = args.event_name eargs._event_source = args.event_source eargs.doc = args.doc eargs.event_data = args.event_data eargs.index = args.index = eargs.sheet = args.sheet return eargs