mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 09:47:36 +02:00
feat: add BoldLabel class
This commit is contained in:
parent
3c82b71f76
commit
86147db18e
12
dzgui/views/components/labels.py
Normal file
12
dzgui/views/components/labels.py
Normal file
@ -0,0 +1,12 @@
|
||||
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)
|
||||
Loading…
Reference in New Issue
Block a user