MCPcopy Create free account
hub / github.com/echQoQ/RustSL / create_vm_checks_grid

Function create_vm_checks_grid

gui/ui_components.py:79–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78
79def create_vm_checks_grid():
80 manifest = load_plugins_manifest()
81 vm_items = manifest.get('vm_checks', [])
82
83 if not vm_items:
84 vm_items = [
85 {'id': t, 'label': t} for t in [
86 'c_drive', 'desktop_files', 'tick', 'memory', 'api_flood',
87 'mouse', 'common_software', 'uptime'
88 ]
89 ]
90
91 grid = QGridLayout()
92 checkboxes = []
93
94 for i, item in enumerate(vm_items):
95 text = item.get('label', item.get('id', ''))
96 vm_id = item.get('id', text)
97
98 cb = QCheckBox(text)
99 cb.setProperty('vm_id', vm_id)
100 checkboxes.append(cb)
101
102 grid.addWidget(cb, i // 4, i % 4)
103
104 return grid, checkboxes
105
106
107def create_run_mode_combobox():

Callers 1

Calls 1

load_plugins_manifestFunction · 0.85

Tested by

no test coverage detected