Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steamrt
steam-runtime-tools
Commits
26e0dd3a
Commit
26e0dd3a
authored
5 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
test-ui: Add mypy annotations
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
5fc94d06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pressure-vessel-test-ui
+4
-0
4 additions, 0 deletions
pressure-vessel-test-ui
with
4 additions
and
0 deletions
pressure-vessel-test-ui
+
4
−
0
View file @
26e0dd3a
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment