Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
System Monitoring Center
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Kayıtlar (commit)
Kenar çubuğunu aç
Hakan Dündar
System Monitoring Center
Commits
68c1d16e
Kaydet (Commit)
68c1d16e
authored
Eki 14, 2021
tarafından
Hakan Dündar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Processes tab customizations menu simplifications
üst
0d253e5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
74 deletions
+4
-74
ProcessesMenuCustomizationsGUI.py
src/ProcessesMenuCustomizationsGUI.py
+1
-6
ProcessesMenuCustomizations.ui
ui/ProcessesMenuCustomizations.ui
+3
-68
No files found.
src/ProcessesMenuCustomizationsGUI.py
Dosyayı görüntüle @
68c1d16e
...
...
@@ -44,7 +44,7 @@ def processes_menu_customizations_gui_func():
# ********************** Define object names for Processes tab customizations popover **********************
global
popover2101p
global
checkbutton2101p
,
checkbutton2102p
,
checkbutton2103p
global
button210
1p
,
button210
2p
,
button2103p
global
button2102p
,
button2103p
global
checkbutton2106p
,
checkbutton2107p
,
checkbutton2108p
,
checkbutton2109p
,
checkbutton2110p
,
checkbutton2111p
,
checkbutton2112p
,
checkbutton2113p
global
checkbutton2114p
,
checkbutton2115p
,
checkbutton2116p
,
checkbutton2117p
,
checkbutton2118p
,
checkbutton2119p
,
checkbutton2120p
,
checkbutton2121p
global
checkbutton2122p
,
checkbutton2123p
...
...
@@ -55,7 +55,6 @@ def processes_menu_customizations_gui_func():
checkbutton2101p
=
builder
.
get_object
(
'checkbutton2101p'
)
checkbutton2102p
=
builder
.
get_object
(
'checkbutton2102p'
)
checkbutton2103p
=
builder
.
get_object
(
'checkbutton2103p'
)
button2101p
=
builder
.
get_object
(
'button2101p'
)
button2102p
=
builder
.
get_object
(
'button2102p'
)
button2103p
=
builder
.
get_object
(
'button2103p'
)
checkbutton2106p
=
builder
.
get_object
(
'checkbutton2106p'
)
...
...
@@ -85,9 +84,6 @@ def processes_menu_customizations_gui_func():
combobox2107p
=
builder
.
get_object
(
'combobox2107p'
)
# ********************** Define object functions for Processes tab customizations popover Common GUI Objects **********************
def
on_button2101p_clicked
(
widget
):
# "Process tree information from 'ps --forest -Ao pid,uid,ppid,cmd' command output" button
process
=
subprocess
.
Popen
(
"x-terminal-emulator -e /bin/bash -c
\'
ps --forest -Ao pid,uid,ppid,cmd; exec bash
\'
"
,
stdout
=
subprocess
.
PIPE
,
stderr
=
None
,
shell
=
True
)
def
on_button2102p_clicked
(
widget
):
# "Reset All" button
Config
.
config_default_processes_func
()
Config
.
config_save_func
()
...
...
@@ -197,7 +193,6 @@ def processes_menu_customizations_gui_func():
Config
.
config_save_func
()
# ********************** Connect signals to GUI objects for Processes tab customizations popover Common GUI Objects **********************
button2101p
.
connect
(
"clicked"
,
on_button2101p_clicked
)
button2102p
.
connect
(
"clicked"
,
on_button2102p_clicked
)
# ********************** Connect signals to GUI objects for Processes tab customizations popover View Tab **********************
button2103p
.
connect
(
"clicked"
,
on_button2103p_clicked
)
...
...
ui/ProcessesMenuCustomizations.ui
Dosyayı görüntüle @
68c1d16e
...
...
@@ -5,7 +5,7 @@
<object
class=
"GtkPopover"
id=
"popover2101p"
>
<property
name=
"can-focus"
>
False
</property>
<child>
<!-- n-columns=1 n-rows=
6
-->
<!-- n-columns=1 n-rows=
4
-->
<object
class=
"GtkGrid"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
False
</property>
...
...
@@ -27,59 +27,6 @@
<property
name=
"top-attach"
>
0
</property>
</packing>
</child>
<child>
<!-- n-columns=3 n-rows=1 -->
<object
class=
"GtkGrid"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
False
</property>
<property
name=
"column-spacing"
>
4
</property>
<child>
<object
class=
"GtkLabel"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Process Tree on Commandline:
</property>
</object>
<packing>
<property
name=
"left-attach"
>
1
</property>
<property
name=
"top-attach"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"button2101p"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
True
</property>
<property
name=
"receives-default"
>
True
</property>
<property
name=
"tooltip-text"
translatable=
"yes"
>
Process tree information from 'ps --forest -Ao pid,uid,ppid,cmd' command output
</property>
<child>
<object
class=
"GtkImage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
False
</property>
<property
name=
"icon-name"
>
system-monitoring-center-info-about-symbolic
</property>
</object>
</child>
</object>
<packing>
<property
name=
"left-attach"
>
2
</property>
<property
name=
"top-attach"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkImage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
False
</property>
<property
name=
"icon-name"
>
system-monitoring-center-settings-symbolic
</property>
</object>
<packing>
<property
name=
"left-attach"
>
0
</property>
<property
name=
"top-attach"
>
0
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"left-attach"
>
0
</property>
<property
name=
"top-attach"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkNotebook"
>
<property
name=
"visible"
>
True
</property>
...
...
@@ -982,7 +929,7 @@
</object>
<packing>
<property
name=
"left-attach"
>
0
</property>
<property
name=
"top-attach"
>
3
</property>
<property
name=
"top-attach"
>
1
</property>
</packing>
</child>
<child>
...
...
@@ -1026,7 +973,7 @@
</object>
<packing>
<property
name=
"left-attach"
>
0
</property>
<property
name=
"top-attach"
>
5
</property>
<property
name=
"top-attach"
>
3
</property>
</packing>
</child>
<child>
...
...
@@ -1041,18 +988,6 @@
<property
name=
"top-attach"
>
2
</property>
</packing>
</child>
<child>
<object
class=
"GtkSeparator"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can-focus"
>
False
</property>
<property
name=
"margin-top"
>
8
</property>
<property
name=
"margin-bottom"
>
8
</property>
</object>
<packing>
<property
name=
"left-attach"
>
0
</property>
<property
name=
"top-attach"
>
4
</property>
</packing>
</child>
</object>
</child>
</object>
...
...
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