mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
feat: add BoldLabel class
This commit is contained in:
1 parent
3c82b71f76
commit
86147db18e
1 file changed
+12
@@ -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)
|
||||||
Reference in new issue
Block a user