mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
chore: use statusbar internal methods
This commit is contained in:
1 parent
63d85b03c1
commit
7a9f0dc096
2 files changed
+8
-17
No files matched your search
@@ -1,4 +1,6 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from dzgui.const.enum import NotebookPage
|
||||
from dzgui.const.constants import HELP_BUBBLE
|
||||
|
||||
import gi
|
||||
@@ -32,14 +34,13 @@ class InfoEventBox(Gtk.EventBox):
|
||||
self, eventbox: Gtk.EventBox, eventcrossing: Gdk.EventCrossing
|
||||
) -> None:
|
||||
self.icon.set_opacity(1)
|
||||
self.controller.set_statusbar(self.text, "Options")
|
||||
self.controller.set_statusbar(NotebookPage.OPTIONS, self.text)
|
||||
|
||||
def _on_leave_tooltip(
|
||||
self, eventbox: Gtk.EventBox, eventcrossing: Gdk.EventCrossing
|
||||
) -> None:
|
||||
self.icon.set_opacity(0.8)
|
||||
# self.parent.controller.set_statusbar("", "Options")
|
||||
self.controller.remove_statusbar("Options")
|
||||
self.controller.remove_statusbar(NotebookPage.OPTIONS)
|
||||
|
||||
def set_text(self, text: str) -> None:
|
||||
self.text = text
|
||||
Reference in new issue
Block a user