chore: consolidate legacy methods

This commit is contained in:
aclist committed 2026-04-25 19:23:53 +09:00
1 parent 61735d20cf
commit 48f69d79e0
4 files changed
+12 -29

No files matched your search

-12
View File
@@ -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
+11
View File
@@ -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)