MCPcopy Create free account

hub / github.com/WavesMan/Disable-automatic-Windows-update / functions

Functions75 in github.com/WavesMan/Disable-automatic-Windows-update

↓ 76 callersFunctionlog_event
( level: int, event: str, message: str, *, action: str = "", status: str = "", op_
python/utils/logger.py:87
↓ 12 callersFunction_invoke
(action: str, func)
python/core/main.py:35
↓ 12 callersFunctionmake_services
(log_path: str)
python/core/main.py:23
↓ 8 callersFunctioncreate_btn
(parent, text, command)
python/ui/main.py:206
↓ 7 callersFunction_run_simple_action
(action: str, invoke, success_msg: str)
python/ui/main.py:158
↓ 6 callersFunctionreset_op_id
(token: Token)
python/utils/logger.py:83
↓ 4 callersMethod_update_grid
(self)
python/ui/components.py:179
↓ 4 callersMethodbatch
(self, cmds: List[str])
python/utils/registry_adapter.py:58
↓ 4 callersMethodexecute
(self, cmd: str)
python/utils/registry_adapter.py:19
↓ 4 callersFunctionnew_op_id
()
python/utils/logger.py:71
↓ 4 callersFunctionset_op_id
(op_id: str)
python/utils/logger.py:79
↓ 3 callersFunction_handle_result
(result, success_msg: str, action: str = "ui_action", duration_ms: int | None = None)
python/ui/main.py:186
↓ 3 callersFunctioncurrent_op_id
()
python/utils/logger.py:75
↓ 3 callersMethoddisable
(self)
python/core/services.py:101
↓ 3 callersMethodenable
(self)
python/core/services.py:121
↓ 2 callersMethod_apply_date
(self, target: str, y: int, m: int, d: int)
python/ui/components.py:62
↓ 2 callersMethod_batch
(self, cmds: List[str])
python/core/services.py:374
↓ 2 callersMethod_parse_nums
(self, s: str)
python/core/services.py:246
↓ 2 callersMethodadd_dword
(self, key_path: str, name: str, value: int)
python/utils/registry_adapter.py:66
↓ 2 callersMethodpause
(self, max_days: int, start_iso: str, end_iso: str)
python/core/services.py:36
↓ 2 callersFunctionrun_cmd
(cmd: str)
python/utils/process_runner.py:10
↓ 2 callersFunctionto_utc_iso
将 datetime 转换为 ISO8601 UTC 字符串(形如 2026-02-07T09:00:00Z) 逻辑说明: - 统一写入注册表使用 UTC,避免本地时区/夏令时变更导致的偏差 - 显示层按本地时区呈现即可
python/core/time_policy.py:20
↓ 1 callersMethod__init__
(self, master: tk.Misc)
python/ui/components.py:107
↓ 1 callersMethod_cmp
(self, a: str, b: str)
python/core/services.py:251
↓ 1 callersFunction_default_times
()
python/core/main.py:16
↓ 1 callersFunction_export_logs
(log_path: str)
python/ui/main.py:267
↓ 1 callersMethod_normalize
(self, tag: str)
python/core/services.py:238
↓ 1 callersMethod_pick
(self, day: int)
python/ui/components.py:223
↓ 1 callersFunction_resolve_log_dir
()
python/utils/logger.py:65
↓ 1 callersFunction_wrap_result
(ok: bool, stdout: str, stderr: str)
python/utils/registry_adapter.py:9
↓ 1 callersFunctioncheck_update
(current_version: str | None = None)
python/core/main.py:115
↓ 1 callersMethodcheck_update
(self, current_version: str | None = None)
python/core/services.py:270
↓ 1 callersFunctionclamp_pause_window
计算并约束暂停窗口,返回(max_days, 调整后的结束时间) 规则: - 结束时间必须晚于开始时间;否则由调用方提示错误 - 天数取向上取整(不足 1 天按 1 天处理),确保覆盖整天策略 - 超过系统允许最大天数时,结束时间按允许上限截断
python/core/time_policy.py:32
↓ 1 callersFunctioncompute_pause_params
生成暂停所需参数(max_days、start_iso、end_iso、本地结束时间) 输入: - start:本地时区开始时间 - preset_days:预设天数(7/14/35 等);若为 None 则使用 custom_end - custom_e
python/core/time_policy.py:57
↓ 1 callersMethodexport
(self, target_path: str)
python/core/services.py:325
↓ 1 callersFunctionexport_logs
(log_path: str, target_path: str)
python/core/main.py:110
↓ 1 callersMethodformat
(self, record: logging.LogRecord)
python/utils/logger.py:26
↓ 1 callersMethodget_values
读取用户选择并返回: - start_dt:datetime(本地时区,带 tzinfo) - preset_days:int 或 None(当选择预设时有效) - end_dt:datetime 或 None(当选择自定义时有效)
python/ui/components.py:70
↓ 1 callersMethodget_version
(self)
python/core/services.py:209
↓ 1 callersFunctiongui
()
python/ui/main.py:29
↓ 1 callersFunctionis_admin
()
python/admin/service.py:9
↓ 1 callersFunctionpause_updates_with_times
(max_days: int, start_iso: str, end_iso: str)
python/core/main.py:131
↓ 1 callersMethodresume
(self)
python/core/services.py:65
↓ 1 callersFunctionrun_as_admin
()
python/admin/service.py:30
↓ 1 callersFunctionsetup_logging
()
python/utils/logger.py:117
↓ 1 callersMethodshow
(self, year: int, month: int, day: int, on_pick, min_date: date | None = None, max_date: date | None = None)
python/ui/components.py:157
Method__init__
(self, registry: RegistryAdapter)
python/core/services.py:33
Method__init__
(self, registry: RegistryAdapter)
python/core/services.py:98
Method__init__
(self, registry: RegistryAdapter)
python/core/services.py:145
Method__init__
(self, log_path: str)
python/core/services.py:322
Method__init__
(self, master: tk.Misc)
python/ui/components.py:15
Function_check_update
()
python/ui/main.py:212
Method_next_month
(self)
python/ui/components.py:210
Method_on_year_month_change
(event=None)
python/ui/components.py:149
Method_open_calendar
(target: str)
python/ui/components.py:46
Function_pause_with_selector
()
python/ui/main.py:69
Method_prev_month
(self)
python/ui/components.py:195
Method_toggle_end_fields
(event=None)
python/ui/components.py:39
Methodadd_sz
(self, key_path: str, name: str, value: str)
python/utils/registry_adapter.py:70
Methoddelete_value
(self, key_path: str, name: str)
python/utils/registry_adapter.py:74
Methoddisable
(self)
python/core/services.py:148
Methoddisable
(self)
python/core/services.py:399
Functiondisable_defender
()
python/core/main.py:85
Functiondisable_firewall
()
python/core/main.py:121
Functiondisable_onedrive
()
python/core/main.py:95
Methodenable
(self)
python/core/services.py:177
Methodenable
(self)
python/core/services.py:425
Functionenable_defender
()
python/core/main.py:90
Functionenable_firewall
()
python/core/main.py:126
Functionenable_onedrive
()
python/core/main.py:100
Methodformat
(self, record: logging.LogRecord)
python/utils/logger.py:51
Functionget_version
()
python/core/main.py:105
Functionpause_updates
(max_days: int = 18300)
python/core/main.py:74
Functionresume_updates
()
python/core/main.py:80
Functionto_local_dt
将数值形式的年月日时分构造成本地时区的 datetime 参数约束: - 年份范围建议为 2000-2100(UI 已限制),月份 1-12,日期 1-31,小时 0-23,分钟 0-59 - 非法值将由调用方捕获异常后进行提示 返回: - 本地
python/core/time_policy.py:4