Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit f9bb409

Browse files
Disabled GPU usage and GPU memory columns (Processes tab)
1 parent 1c40ddb commit f9bb409

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

src/Processes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ def tab_gui(self):
6666
Config.processes_data_column_order = data_column_order + [-1]
6767
Config.processes_data_column_widths = data_column_widths + [-1]
6868

69+
# Hide GPU Usage and GPU Memory columns if they were shown before. This hides 25th and 26th columns.
70+
if len(data_column_order) == 26:
71+
if data_column_order[-1] != -1:
72+
data_column_order[-1] = -1
73+
if data_column_order[-2] != -1:
74+
data_column_order[-2] = -1
75+
6976

7077
def tab_title_grid(self):
7178
"""

src/ProcessesMenu.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -213,59 +213,63 @@ def add_remove_columns_tab_gui(self):
213213

214214
# CheckButton (Write Speed)
215215
self.write_speed_cb = Common.checkbutton(_tr("Write Speed"), None)
216-
grid.attach(self.write_speed_cb, 0, 13, 1, 1)
216+
grid.attach(self.write_speed_cb, 1, 1, 1, 1)
217217

218218
# CheckButton (Priority)
219219
self.priority_cb = Common.checkbutton(_tr("Priority"), None)
220-
grid.attach(self.priority_cb, 1, 1, 1, 1)
220+
grid.attach(self.priority_cb, 1, 2, 1, 1)
221221

222222
# CheckButton (Threads)
223223
self.threads_cb = Common.checkbutton(_tr("Threads"), None)
224-
grid.attach(self.threads_cb, 1, 2, 1, 1)
224+
grid.attach(self.threads_cb, 1, 3, 1, 1)
225225

226226
# CheckButton (PPID)
227227
self.ppid_cb = Common.checkbutton(_tr("PPID"), None)
228-
grid.attach(self.ppid_cb, 1, 3, 1, 1)
228+
grid.attach(self.ppid_cb, 1, 4, 1, 1)
229229

230230
# CheckButton (UID)
231231
self.uid_cb = Common.checkbutton(_tr("UID"), None)
232-
grid.attach(self.uid_cb, 1, 4, 1, 1)
232+
grid.attach(self.uid_cb, 1, 5, 1, 1)
233233

234234
# CheckButton (GID)
235235
self.gid_cb = Common.checkbutton(_tr("GID"), None)
236-
grid.attach(self.gid_cb, 1, 5, 1, 1)
236+
grid.attach(self.gid_cb, 1, 6, 1, 1)
237237

238238
# CheckButton (Start Time)
239239
self.start_time_cb = Common.checkbutton(_tr("Start Time"), None)
240-
grid.attach(self.start_time_cb, 1, 6, 1, 1)
240+
grid.attach(self.start_time_cb, 1, 7, 1, 1)
241241

242242
# CheckButton (Command Line)
243243
self.commandline_cb = Common.checkbutton(_tr("Command Line"), None)
244-
grid.attach(self.commandline_cb, 1, 7, 1, 1)
244+
grid.attach(self.commandline_cb, 1, 8, 1, 1)
245245

246246
# CheckButton (CPU Time)
247247
self.cpu_time_cb = Common.checkbutton(_tr("CPU Time"), None)
248-
grid.attach(self.cpu_time_cb, 1, 8, 1, 1)
248+
grid.attach(self.cpu_time_cb, 1, 9, 1, 1)
249249

250250
# CheckButton (CPU - Recursive)
251251
self.cpu_recursive_cb = Common.checkbutton(_tr("CPU") + " - " + _tr("Recursive"), None)
252-
grid.attach(self.cpu_recursive_cb, 1, 9, 1, 1)
252+
grid.attach(self.cpu_recursive_cb, 1, 10, 1, 1)
253253

254254
# CheckButton (Memory (RSS) - Recursive)
255255
self.memory_rss_recursive_cb = Common.checkbutton(_tr("Memory (RSS)") + " - " + _tr("Recursive"), None)
256-
grid.attach(self.memory_rss_recursive_cb, 1, 10, 1, 1)
256+
grid.attach(self.memory_rss_recursive_cb, 1, 11, 1, 1)
257257

258258
# CheckButton (Memory - Recursive)
259259
self.memory_recursive_cb = Common.checkbutton(_tr("Memory") + " - " + _tr("Recursive"), None)
260-
grid.attach(self.memory_recursive_cb, 1, 11, 1, 1)
260+
grid.attach(self.memory_recursive_cb, 1, 12, 1, 1)
261261

262262
# CheckButton (GPU Usage)
263263
self.gpu_usage_cb = Common.checkbutton(_tr("GPU Usage"), None)
264-
grid.attach(self.gpu_usage_cb, 1, 12, 1, 1)
264+
# Do not attach the CheckButton and hide it. Because this feature is removed.
265+
#grid.attach(self.gpu_usage_cb, 0, 13, 1, 1)
266+
self.gpu_usage_cb.set_visible(False)
265267

266268
# CheckButton (GPU Memory)
267269
self.gpu_memory_cb = Common.checkbutton(_tr("GPU Memory"), None)
268-
grid.attach(self.gpu_memory_cb, 1, 13, 1, 1)
270+
# Do not attach the CheckButton and hide it. Because this feature is removed.
271+
#grid.attach(self.gpu_memory_cb, 1, 13, 1, 1)
272+
self.gpu_memory_cb.set_visible(False)
269273

270274

271275
def numbers_tab_gui(self):

0 commit comments

Comments
 (0)