mirror of
https://github.com/aclist/dztui.git
synced 2026-11-12 21:10:37 +01:00
This commit is contained in:
1 parent
42feeae8d0
commit
cf70182733
5 files changed
+49
-5
No files matched your search
@@ -10,6 +10,7 @@ from dzgui.util.strings import (
|
||||
)
|
||||
from dzgui.const.constants import (
|
||||
CLIPBOARD,
|
||||
CLOSE,
|
||||
INPUT_KEYBOARD,
|
||||
LIST_ADD,
|
||||
REFRESH_ICON,
|
||||
@@ -128,6 +129,14 @@ class CopyIpButton(ClipboardButton):
|
||||
self.set_tooltip_text("Copy IP to clipboard")
|
||||
|
||||
|
||||
class CloseButton(IconTextButton):
|
||||
def __init__(self, label: str) -> None:
|
||||
super().__init__(icon=CLOSE, label=label)
|
||||
|
||||
# TODO: strings
|
||||
self.set_tooltip_text("Unset this server as favorite")
|
||||
|
||||
|
||||
class WebButton(IconTextButton):
|
||||
def __init__(self, label: str) -> None:
|
||||
super().__init__(icon=WEB_BROWSER, label=label)
|
||||
|
||||
Reference in new issue
Block a user