Kaydet (Commit) f9bb409e authored tarafından Hakan Dündar's avatar Hakan Dündar

Disabled GPU usage and GPU memory columns (Processes tab)

üst 1c40ddb7
......@@ -66,6 +66,13 @@ class Processes:
Config.processes_data_column_order = data_column_order + [-1]
Config.processes_data_column_widths = data_column_widths + [-1]
# Hide GPU Usage and GPU Memory columns if they were shown before. This hides 25th and 26th columns.
if len(data_column_order) == 26:
if data_column_order[-1] != -1:
data_column_order[-1] = -1
if data_column_order[-2] != -1:
data_column_order[-2] = -1
def tab_title_grid(self):
"""
......
......@@ -213,59 +213,63 @@ class ProcessesMenu:
# CheckButton (Write Speed)
self.write_speed_cb = Common.checkbutton(_tr("Write Speed"), None)
grid.attach(self.write_speed_cb, 0, 13, 1, 1)
grid.attach(self.write_speed_cb, 1, 1, 1, 1)
# CheckButton (Priority)
self.priority_cb = Common.checkbutton(_tr("Priority"), None)
grid.attach(self.priority_cb, 1, 1, 1, 1)
grid.attach(self.priority_cb, 1, 2, 1, 1)
# CheckButton (Threads)
self.threads_cb = Common.checkbutton(_tr("Threads"), None)
grid.attach(self.threads_cb, 1, 2, 1, 1)
grid.attach(self.threads_cb, 1, 3, 1, 1)
# CheckButton (PPID)
self.ppid_cb = Common.checkbutton(_tr("PPID"), None)
grid.attach(self.ppid_cb, 1, 3, 1, 1)
grid.attach(self.ppid_cb, 1, 4, 1, 1)
# CheckButton (UID)
self.uid_cb = Common.checkbutton(_tr("UID"), None)
grid.attach(self.uid_cb, 1, 4, 1, 1)
grid.attach(self.uid_cb, 1, 5, 1, 1)
# CheckButton (GID)
self.gid_cb = Common.checkbutton(_tr("GID"), None)
grid.attach(self.gid_cb, 1, 5, 1, 1)
grid.attach(self.gid_cb, 1, 6, 1, 1)
# CheckButton (Start Time)
self.start_time_cb = Common.checkbutton(_tr("Start Time"), None)
grid.attach(self.start_time_cb, 1, 6, 1, 1)
grid.attach(self.start_time_cb, 1, 7, 1, 1)
# CheckButton (Command Line)
self.commandline_cb = Common.checkbutton(_tr("Command Line"), None)
grid.attach(self.commandline_cb, 1, 7, 1, 1)
grid.attach(self.commandline_cb, 1, 8, 1, 1)
# CheckButton (CPU Time)
self.cpu_time_cb = Common.checkbutton(_tr("CPU Time"), None)
grid.attach(self.cpu_time_cb, 1, 8, 1, 1)
grid.attach(self.cpu_time_cb, 1, 9, 1, 1)
# CheckButton (CPU - Recursive)
self.cpu_recursive_cb = Common.checkbutton(_tr("CPU") + " - " + _tr("Recursive"), None)
grid.attach(self.cpu_recursive_cb, 1, 9, 1, 1)
grid.attach(self.cpu_recursive_cb, 1, 10, 1, 1)
# CheckButton (Memory (RSS) - Recursive)
self.memory_rss_recursive_cb = Common.checkbutton(_tr("Memory (RSS)") + " - " + _tr("Recursive"), None)
grid.attach(self.memory_rss_recursive_cb, 1, 10, 1, 1)
grid.attach(self.memory_rss_recursive_cb, 1, 11, 1, 1)
# CheckButton (Memory - Recursive)
self.memory_recursive_cb = Common.checkbutton(_tr("Memory") + " - " + _tr("Recursive"), None)
grid.attach(self.memory_recursive_cb, 1, 11, 1, 1)
grid.attach(self.memory_recursive_cb, 1, 12, 1, 1)
# CheckButton (GPU Usage)
self.gpu_usage_cb = Common.checkbutton(_tr("GPU Usage"), None)
grid.attach(self.gpu_usage_cb, 1, 12, 1, 1)
# Do not attach the CheckButton and hide it. Because this feature is removed.
#grid.attach(self.gpu_usage_cb, 0, 13, 1, 1)
self.gpu_usage_cb.set_visible(False)
# CheckButton (GPU Memory)
self.gpu_memory_cb = Common.checkbutton(_tr("GPU Memory"), None)
grid.attach(self.gpu_memory_cb, 1, 13, 1, 1)
# Do not attach the CheckButton and hide it. Because this feature is removed.
#grid.attach(self.gpu_memory_cb, 1, 13, 1, 1)
self.gpu_memory_cb.set_visible(False)
def numbers_tab_gui(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment