mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
cacfab35bf
commit
2d265c4b9b
19 files changed
+74
-44
No files matched your search
@@ -68,7 +68,7 @@ class ButtonBox(Gtk.Box):
|
||||
def _focus_first_button(self, emitter: "Emitter") -> None:
|
||||
self.buttons[0].grab_focus()
|
||||
|
||||
def _on_selection_button_clicked(self, button: Gtk.Button) -> None:
|
||||
def _on_selection_button_clicked(self, button: ContextualButton) -> None:
|
||||
self.controller.open_page_by_button(button)
|
||||
|
||||
def _walk_buttons(self, increment: int) -> None:
|
||||
@@ -79,8 +79,8 @@ class ButtonBox(Gtk.Box):
|
||||
return
|
||||
if n == -1:
|
||||
return
|
||||
n = self.buttons[n]
|
||||
n.grab_focus()
|
||||
b = self.buttons[n]
|
||||
b.grab_focus()
|
||||
return
|
||||
|
||||
def _on_keypress(self, widget: Gtk.Widget, event: Gdk.EventKey) -> None:
|
||||
|
||||
Reference in new issue
Block a user