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
d287c0ea
Commit
d287c0ea
authored
3 years ago
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
changed second treeview to show data_type
parent
11147691
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tst/tst/tm_management.py
+11
-2
11 additions, 2 deletions
Tst/tst/tm_management.py
with
11 additions
and
2 deletions
Tst/tst/tm_management.py
+
11
−
2
View file @
d287c0ea
#!/usr/bin/env python3
#!/usr/bin/env python3
import
gi
import
gi
import
s2k_partypes
as
s2k
gi
.
require_version
(
"
Gtk
"
,
"
3.0
"
)
gi
.
require_version
(
"
Gtk
"
,
"
3.0
"
)
...
@@ -41,9 +42,17 @@ def get_tm_type_sublist(tm_descr):
...
@@ -41,9 +42,17 @@ def get_tm_type_sublist(tm_descr):
txp_from
=
str
(
counter
[
5
])
txp_from
=
str
(
counter
[
5
])
txp_altxt
=
str
(
counter
[
6
])
txp_altxt
=
str
(
counter
[
6
])
plf_offpy
=
str
(
counter
[
7
])
plf_offpy
=
str
(
counter
[
7
])
pcf_ptc
=
counter
[
8
]
pcf_pfc
=
counter
[
9
]
tm_type_sub_list
.
append
([
pid_tpsc
,
pid_spid
,
pcf_name
,
pcf_descr
,
pcf_curtx
,
txp_from
,
txp_altxt
])
if
pcf_ptc
==
None
:
data_type
=
"
None
"
pass
else
:
data_type
=
s2k
.
ptt
[
pcf_ptc
][
pcf_pfc
]
tm_type_sub_list
.
append
([
pcf_name
,
pcf_descr
,
pcf_curtx
,
txp_from
,
txp_altxt
,
plf_offpy
,
data_type
])
return
tm_type_sub_list
return
tm_type_sub_list
...
@@ -207,7 +216,7 @@ class TmSecondaryTable(Gtk.Box):
...
@@ -207,7 +216,7 @@ class TmSecondaryTable(Gtk.Box):
self
.
secondary_treeview
=
Gtk
.
TreeView
(
model
=
self
.
secondary_filter
)
self
.
secondary_treeview
=
Gtk
.
TreeView
(
model
=
self
.
secondary_filter
)
for
i
,
column_title
in
enumerate
(
for
i
,
column_title
in
enumerate
(
[
"
pid_tpsc
"
,
"
pid_spic
"
,
"
pcf_name
"
,
"
pcf_descr
"
,
"
pcf_curtx
"
,
"
txp_from
"
,
"
txp_altxt
"
]
[
"
pcf_name
"
,
"
pcf_descr
"
,
"
pcf_curtx
"
,
"
txp_from
"
,
"
txp_altxt
"
,
"
plf_offby
"
,
"
data_type
"
]
):
):
renderer
=
Gtk
.
CellRendererText
()
renderer
=
Gtk
.
CellRendererText
()
column
=
Gtk
.
TreeViewColumn
(
column_title
,
renderer
,
text
=
i
)
column
=
Gtk
.
TreeViewColumn
(
column_title
,
renderer
,
text
=
i
)
...
...
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