Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
168cf2a7
Commit
168cf2a7
authored
1 year ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
add shortcut to TST
parent
32c70fc3
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
Tst/tst/tst.py
+14
-8
14 additions, 8 deletions
Tst/tst/tst.py
with
14 additions
and
8 deletions
Tst/tst/tst.py
+
14
−
8
View file @
168cf2a7
...
@@ -277,11 +277,16 @@ class TstAppWindow(Gtk.ApplicationWindow):
...
@@ -277,11 +277,16 @@ class TstAppWindow(Gtk.ApplicationWindow):
self
.
btn_export_csv
.
set_icon_name
(
'
text-csv
'
)
self
.
btn_export_csv
.
set_icon_name
(
'
text-csv
'
)
self
.
btn_export_csv
.
set_tooltip_text
(
'
Export current spec to CSV
'
)
self
.
btn_export_csv
.
set_tooltip_text
(
'
Export current spec to CSV
'
)
self
.
btn_export_csv
.
connect
(
'
clicked
'
,
self
.
on_generate_csv
)
self
.
btn_export_csv
.
connect
(
'
clicked
'
,
self
.
on_generate_csv
)
self
.
btn_generate_products
=
Gtk
.
ToolButton
()
# self.btn_generate_products = Gtk.ToolButton()
self
.
btn_generate_products
.
set_label
(
'
Generate scripts
'
)
# self.btn_generate_products.set_label('Generate scripts')
self
.
btn_generate_products
.
set_icon_name
(
'
text-x-python
'
)
# self.btn_generate_products.set_icon_name('text-x-python')
self
.
btn_generate_products
.
set_tooltip_text
(
'
Generate command.py, verification.py and manually.py
'
)
# self.btn_generate_products.set_tooltip_text('Generate command.py, verification.py and manually.py')
self
.
btn_generate_products
.
connect
(
'
clicked
'
,
self
.
on_generate_products
)
# self.btn_generate_products.connect('clicked', self.on_generate_products)
self
.
btn_generate_script
=
Gtk
.
ToolButton
()
self
.
btn_generate_script
.
set_label
(
'
Generate scripts
'
)
self
.
btn_generate_script
.
set_icon_name
(
'
text-x-python
'
)
self
.
btn_generate_script
.
set_tooltip_text
(
'
Generate Python script of the current test
'
)
self
.
btn_generate_script
.
connect
(
'
clicked
'
,
self
.
on_generate_barescript
)
self
.
btn_start_ccs_editor
=
Gtk
.
ToolButton
()
self
.
btn_start_ccs_editor
=
Gtk
.
ToolButton
()
self
.
btn_start_ccs_editor
.
set_label
(
'
Start CCS
'
)
self
.
btn_start_ccs_editor
.
set_label
(
'
Start CCS
'
)
...
@@ -305,7 +310,8 @@ class TstAppWindow(Gtk.ApplicationWindow):
...
@@ -305,7 +310,8 @@ class TstAppWindow(Gtk.ApplicationWindow):
self
.
toolbar
.
insert
(
self
.
btn_save_as
,
3
)
self
.
toolbar
.
insert
(
self
.
btn_save_as
,
3
)
# self.toolbar.insert(self.btn_show_model_viewer, 2)
# self.toolbar.insert(self.btn_show_model_viewer, 2)
self
.
toolbar
.
insert
(
self
.
btn_export_csv
,
4
)
self
.
toolbar
.
insert
(
self
.
btn_export_csv
,
4
)
self
.
toolbar
.
insert
(
self
.
btn_generate_products
,
5
)
# self.toolbar.insert(self.btn_generate_products, 5)
self
.
toolbar
.
insert
(
self
.
btn_generate_script
,
5
)
self
.
toolbar
.
insert
(
self
.
btn_start_ccs_editor
,
6
)
self
.
toolbar
.
insert
(
self
.
btn_start_ccs_editor
,
6
)
self
.
toolbar
.
insert
(
self
.
btn_open_progress_view
,
7
)
self
.
toolbar
.
insert
(
self
.
btn_open_progress_view
,
7
)
...
@@ -1118,8 +1124,8 @@ class TstAppWindow(Gtk.ApplicationWindow):
...
@@ -1118,8 +1124,8 @@ class TstAppWindow(Gtk.ApplicationWindow):
about_dialog
.
set_program_name
(
'
Test Specification Tool
'
)
about_dialog
.
set_program_name
(
'
Test Specification Tool
'
)
about_dialog
.
set_copyright
(
'
UVIE 08/2022
'
)
about_dialog
.
set_copyright
(
'
UVIE 08/2022
'
)
about_dialog
.
set_license_type
(
Gtk
.
License
.
MPL_2_0
)
about_dialog
.
set_license_type
(
Gtk
.
License
.
MPL_2_0
)
about_dialog
.
present
()
about_dialog
.
run
()
return
about_dialog
.
destroy
()
def
on_set_idb_version
(
self
,
widget
):
def
on_set_idb_version
(
self
,
widget
):
self
.
reconnect_mib
()
self
.
reconnect_mib
()
...
...
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