Skip to content
Snippets Groups Projects
Commit f7d9a42e authored by Jakub Ziebinski's avatar Jakub Ziebinski
Browse files

Add another TabPane - withdraw routes

parent 6b0593c7
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ from clive.__private.ui.operations.hive_power_management.delegate_hive_power.del ...@@ -23,6 +23,7 @@ from clive.__private.ui.operations.hive_power_management.delegate_hive_power.del
) )
from clive.__private.ui.operations.hive_power_management.power_down.power_down import PowerDown from clive.__private.ui.operations.hive_power_management.power_down.power_down import PowerDown
from clive.__private.ui.operations.hive_power_management.power_up.power_up import PowerUp from clive.__private.ui.operations.hive_power_management.power_up.power_up import PowerUp
from clive.__private.ui.operations.hive_power_management.withdraw_routes.withdraw_routes import WithdrawRoutes
from clive.__private.ui.operations.operation_base_screen import OperationBaseScreen from clive.__private.ui.operations.operation_base_screen import OperationBaseScreen
from clive.__private.ui.widgets.big_title import BigTitle from clive.__private.ui.widgets.big_title import BigTitle
from clive.__private.ui.widgets.clive_data_table import CliveDataTable from clive.__private.ui.widgets.clive_data_table import CliveDataTable
...@@ -33,6 +34,7 @@ if TYPE_CHECKING: ...@@ -33,6 +34,7 @@ if TYPE_CHECKING:
POWER_UP_TAB_LABEL: Final[str] = "Power up" POWER_UP_TAB_LABEL: Final[str] = "Power up"
POWER_DOWN_TAB_LABEL: Final[str] = "Power down" POWER_DOWN_TAB_LABEL: Final[str] = "Power down"
WITHDRAW_ROUTES_TAB_LABEL: Final[str] = "Withdraw routes"
DELEGATE_HIVE_POWER_LABEL: Final[str] = "Delegate" DELEGATE_HIVE_POWER_LABEL: Final[str] = "Delegate"
...@@ -59,4 +61,5 @@ class HivePowerManagement(OperationBaseScreen): ...@@ -59,4 +61,5 @@ class HivePowerManagement(OperationBaseScreen):
with CliveTabbedContent(): with CliveTabbedContent():
yield PowerUp(POWER_UP_TAB_LABEL) yield PowerUp(POWER_UP_TAB_LABEL)
yield PowerDown(POWER_DOWN_TAB_LABEL) yield PowerDown(POWER_DOWN_TAB_LABEL)
yield WithdrawRoutes(WITHDRAW_ROUTES_TAB_LABEL)
yield DelegateHivePower(DELEGATE_HIVE_POWER_LABEL) yield DelegateHivePower(DELEGATE_HIVE_POWER_LABEL)
from __future__ import annotations
from typing import TYPE_CHECKING
from textual.widgets import TabPane
from clive.__private.ui.widgets.clive_widget import CliveWidget
if TYPE_CHECKING:
from rich.text import TextType
class WithdrawRoutes(TabPane, CliveWidget):
"""TabPane with all content about setting withdraw routes."""
def __init__(self, title: TextType):
"""
Initialize a TabPane.
Args:
----
title: Title of the TabPane (will be displayed in a tab label).
"""
super().__init__(title=title)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment