Skip to content
Snippets Groups Projects

Prepare withdraw routes part of the HP managament

Merged Jakub Ziebinski requested to merge jziebinski/withdraw-routes-prepare into develop
All threads resolved!
Compare and Show latest version
8 files
+ 31
60
Compare changes
  • Side-by-side
  • Inline
Files
8
from __future__ import annotations
from textual.widgets import Static
class OperationNameInfo(Static):
"""Widget used to inform the user about the real name of the operation in the blockchain."""
DEFAULT_CSS = """
OperationNameInfo {
text-style: bold;
background: $accent;
width: 1fr;
height: 1;
text-align: center;
}
"""
def __init__(self, operation_name: str, operation_alias: str):
"""
Initialize the `OperationNameInfo` widget.
Args:
----
operation_name: the real name of the operation in the blockchain.
operation_alias: common name of the operation.
"""
super().__init__(
renderable=f"{operation_alias.capitalize()} corresponds to a `{operation_name.lower()}` blockchain operation"
)
Loading