mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: consolidate legacy methods
This commit is contained in:
1 parent
61735d20cf
commit
48f69d79e0
4 files changed
+12
-29
No files matched your search
@@ -1,12 +0,0 @@
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk # noqa E402
|
||||
|
||||
class LeftLabel(Gtk.Label):
|
||||
def __init__(self, text: str, tooltip: str = ""):
|
||||
super().__init__(
|
||||
label=text,
|
||||
halign=Gtk.Align.START,
|
||||
)
|
||||
self.set_tooltip_text(tooltip)
|
||||
pass
|
||||
@@ -1,12 +1,23 @@
|
||||
from dzgui.util.format import embolden
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk # noqa E402
|
||||
|
||||
|
||||
class BoldLabel(Gtk.Label):
|
||||
def __init__(self, text: str):
|
||||
super().__init__()
|
||||
|
||||
label = embolden(text)
|
||||
self.set_markup(label)
|
||||
|
||||
|
||||
class LeftLabel(Gtk.Label):
|
||||
def __init__(self, text: str, tooltip: str = ""):
|
||||
super().__init__(
|
||||
label=text,
|
||||
halign=Gtk.Align.START,
|
||||
)
|
||||
self.set_tooltip_text(tooltip)
|
||||
Reference in new issue
Block a user