election_day.screen_widgets.generic
Attributes
Classes
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
Module Contents
- class election_day.screen_widgets.generic.H1Widget[source]
- class election_day.screen_widgets.generic.H2Widget[source]
- class election_day.screen_widgets.generic.H3Widget[source]
- class election_day.screen_widgets.generic.PWidget[source]
- class election_day.screen_widgets.generic.HRWidget[source]
- class election_day.screen_widgets.generic.GridRowWidget[source]
- class election_day.screen_widgets.generic.GridColumnWidget[source]
- class election_day.screen_widgets.generic.PrincipalLogoWidget[source]
- class election_day.screen_widgets.generic.QrCodeWidget[source]
- class election_day.screen_widgets.generic.ModelBoundWidget(model: _E | None = None)[source]
Bases:
Generic
[_E
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.ModelTitleWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.IfCompletedWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.IfNotCompletedWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.ModelProgressWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.CountedEntitiesWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.ChartWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[_E
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.LastResultChangeWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.NumberOfCountedEntitiesWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.generic.TotalEntitiesWidget(model: _E | None = None)[source]
Bases:
ModelBoundWidget
[Entity
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default