mirror of
https://github.com/aclist/dztui.git
synced 2026-11-08 11:00:48 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
3d33d4f1e0
commit
52d51f2bd7
14 files changed
+50
-41
No files matched your search
@@ -62,7 +62,7 @@ class NoteDialog(GenericDialog):
|
||||
if len(entry.get_text()) == 0:
|
||||
self.ok.set_sensitive(False)
|
||||
|
||||
def validate(self, text: str) -> None:
|
||||
def validate(self, text: str) -> bool:
|
||||
if text.isspace():
|
||||
sensitive = False
|
||||
else:
|
||||
|
||||
@@ -47,7 +47,7 @@ class ServerDialog(GenericDialog):
|
||||
# def pack(self, widget: Gtk.Widget) -> None:
|
||||
# self.content.pack_start(widget, EXPAND, FILL, NO_PADDING)
|
||||
|
||||
def _on_keypress(self, view: Gtk.TreeView, event: Gdk.EventKey) -> None:
|
||||
def _on_keypress(self, view: Gtk.TreeView, event: Gdk.EventKey) -> bool:
|
||||
# NOTE: ESC normally unfocuses treeview instead of destroying dialog
|
||||
if event.keyval == Gdk.KEY_Escape:
|
||||
self.destroy()
|
||||
|
||||
Reference in new issue
Block a user