Skip to content
Snippets Groups Projects
Commit 26e0dd3a authored by Simon McVittie's avatar Simon McVittie
Browse files

test-ui: Add mypy annotations

parent 5fc94d06
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,8 @@ logger = logging.getLogger('pressure-vessel-test-ui') ...@@ -44,6 +44,8 @@ logger = logging.getLogger('pressure-vessel-test-ui')
class Gui: class Gui:
def __init__(self): def __init__(self):
# type: (...) -> None
self.window = Gtk.Window() self.window = Gtk.Window()
self.window.set_default_size(600, 300) self.window.set_default_size(600, 300)
self.window.connect('delete-event', Gtk.main_quit) self.window.connect('delete-event', Gtk.main_quit)
...@@ -114,6 +116,7 @@ class Gui: ...@@ -114,6 +116,7 @@ class Gui:
row += 1 row += 1
def run_cb(self, _ignored=None): def run_cb(self, _ignored=None):
# type: (typing.Any) -> None
if self.script_check.get_active(): if self.script_check.get_active():
wrap = 'pressure-vessel-wrap.sh' wrap = 'pressure-vessel-wrap.sh'
...@@ -159,6 +162,7 @@ class Gui: ...@@ -159,6 +162,7 @@ class Gui:
os.execvp(argv[0], argv) os.execvp(argv[0], argv)
def run(self): def run(self):
# type: (...) -> None
self.window.show_all() self.window.show_all()
Gtk.main() Gtk.main()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment