mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
feat: preconnect dialog fields (WIP)
This commit is contained in:
1 parent
dcbc1fa716
commit
5f8795acf7
7 files changed
+144
-82
No files matched your search
@@ -21,3 +21,14 @@ class LeftLabel(Gtk.Label):
|
||||
halign=Gtk.Align.START,
|
||||
)
|
||||
self.set_tooltip_text(tooltip)
|
||||
|
||||
|
||||
class IconLabel(Gtk.Box):
|
||||
def __init__(self, text: str, label: str) -> None:
|
||||
super().__init__(
|
||||
orientation=Gtk.Orientation.HORIZONTAL, spacing=10, margin_start=10
|
||||
)
|
||||
self.label = Gtk.Label(label=text, halign=Gtk.Align.START, margin_bottom=2)
|
||||
self.icon = Gtk.Image.new_from_icon_name(label, Gtk.IconSize.BUTTON)
|
||||
for el in self.icon, self.label:
|
||||
self.add(el)
|
||||
Reference in new issue
Block a user