Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
taste-setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
taste-setup
Commits
b22ce36c
Commit
b22ce36c
authored
Sep 12, 2017
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use more explicit buttons
parent
b7779218
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
misc/helper-scripts/check-deployment-target-gui.py
misc/helper-scripts/check-deployment-target-gui.py
+6
-4
No files found.
misc/helper-scripts/check-deployment-target-gui.py
View file @
b22ce36c
...
...
@@ -19,12 +19,14 @@ def run_gui(platform):
app
=
QApplication
(
sys
.
argv
)
msg_box
=
QMessageBox
()
msg_box
.
setWindowTitle
(
"This plaform is not installed!"
)
msg_box
.
addButton
(
QMessageBox
.
Ok
)
msg_box
.
addButton
(
QMessageBox
.
Cancel
)
ok
=
msg_box
.
addButton
(
"Install now"
,
QMessageBox
.
AcceptRole
)
later
=
msg_box
.
addButton
(
"Install later"
,
QMessageBox
.
RejectRole
)
msg_box
.
setEscapeButton
(
later
)
msg_box
.
setDefaultButton
(
ok
)
msg_box
.
setIcon
(
QMessageBox
.
Warning
)
msg_box
.
setText
(
"Do you want to install target {} ?"
.
format
(
platform
))
res
=
msg_box
.
exec_
()
if
res
==
QMessageBox
.
O
k
:
msg_box
.
exec_
()
if
msg_box
.
clickedButton
()
==
o
k
:
print
(
"OK, will do."
)
else
:
warn_box
=
QMessageBox
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment