euporie.core.utils
Miscellaneou utility classes.
Functions
|
Merge the second dictionary onto the first. |
|
Return a mouse handler which call a given function on click. |
|
Decorator for overloaded functions/methods. |
|
Run a function in an thread, but make sure it uses the same contextvars. |
Classes
|
A list-like class which chains multiple lists. |
|
|
|
|
|
A class that represents a thread of control. |
|
Type variable. |
chain(*iterables) --> chain object |
- class euporie.core.utils.ChainedList(*lists: Iterable[T])
Bases:
Sequence
[euporie.core.utils.T
]A list-like class which chains multiple lists.
- count(value) integer -- return number of occurrences of value
- index(value[, start[, stop]]) integer -- return first index of value.
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.
- euporie.core.utils.dict_merge(target_dict: dict, input_dict: dict) None
Merge the second dictionary onto the first.
- euporie.core.utils.on_click(func: Callable) MouseHandler
Return a mouse handler which call a given function on click.