Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

ctk-kit

Latest version: v0.17.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: Salis133
22 Versions
2.1K Downloads

Scan summary

ctk-kit was last scanned on 28 Nov 2026 at version 0.17.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 22 versions; the latest 5 were published within 7 days (22–28 Nov 2026).
  • Findings: No rules fired in version 0.17.0.
  • Downloads: 2,146 downloads.

Versions

22 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.17.0 LATEST 28 Nov 2026 No rules fired
0.15.1 25 Nov 2026 No rules fired
0.15.0 25 Nov 2026 No rules fired
0.14.0 25 Nov 2026 Not shown
0.13.0 22 Nov 2026 Not shown

No rules fired in 0.17.0

Findings

Findings for v0.17.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.17.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

ctk-kit

Docs CI PyPI Python License

一个用来做「正经桌面工具」的 Python UI 库:控件全部自绘、换色即时生效、 页面多了也不卡,在 Windows 11 上还能用上系统的毛玻璃材质。

📖 完整文档:https://dashsalter.github.io/ctk-kit/ —— 每个控件的参数、方法和可复制示例都在那里。

ctk-kit 是什么

ctk-kit 是建在 CustomTkinter 之上的桌面 UI 库。 它把 Tkinter 里那些「能用但不好看、写起来啰嗦」的部分重新做了一遍:

  • 控件不是 ttk 的系统原生外观,而是全部自绘,圆角、悬停、禁用态统一设计;
  • 颜色、圆角、间距、字号收进一套设计令牌,改一个值全窗生效;
  • 页面、表格、懒加载列表、日期选择、取色器这些「做工具一定会用到」的东西直接内置;
  • 事件、取值、只读、主题切换都有统一的写法,不用再记 Tk 的 bind / configure 细节。

目标很简单:写桌面工具时,不用在「好看」和「好维护」之间二选一。

和原生 Tkinter 的区别

原生 Tkinter / ttk ctk-kit
界面组件 系统原生控件,方角、凹槽、改不动 全部重写为自绘控件,圆角 / 悬停 / 禁用态是一套设计
外观一致性 每个控件单独 configure,容易拼出几种风格 所有控件从同一份令牌取色、取圆角、取字号
主题 深浅两套颜色自己拼 Mica / Frosted / Dark / Acrylic 四种主题,app.set_theme() 一行切换
功能范围 按钮、输入框、表格都要自己组装 表格、懒加载列表、日期、取色、图片查看器、对话框、页面导航等开箱即用
语法 configure / cget / bind / after set_text / get / set / on_click / readonly,语义统一
多页面 自己管 Frame 显示隐藏,切页容易白屏 PageBase + SidebarNav 内置分帧构建、预建、换色补画

特点与优势

视觉同源,不是拼出来的

整体是低饱和深色 + 圆角卡片:卡片 10px 圆角、控件 8px、强调色只用在主按钮和选中的 那一项上。大部分 Tkinter 项目最后都长这样——按钮方角、输入框系统凹槽、弹出面板另一套 配色;ctk-kit 的每个控件都从同一份设计令牌取色、取圆角、取字号,所以深浅色、强调色、 禁用态在所有控件上是一致的。附带的结果是:改品牌色只需要改一个令牌。

为多页面应用做过性能工程

这是它和多数 Tk 组件库最不一样的地方——性能不是顺手优化,而是设计前提:

问题 做法
切页整窗冻结 每页先出页头与首卡,其余按 12 ms 时间片分帧建
第二次进同一页还慢 空闲时按顺序预建相邻页,回去通常直接显示
换色卡住 只重画当前可见页,其余页记版本号,切回来时补画
页面多了拖窗口卡 拖拽边框开始时销毁看不见的页面,松手后按需重建
关窗等两三秒 交给 Tcl 一次性拆树,3000 控件约 0.36 s

示例程序(18 个页面、3000+ 控件)实测:换色从 740 ms 降到 134 ms,最重的一页从 1.7 s 全窗冻结变成首帧 190–440 ms 可交互。

Windows 11 的材质是真用了系统能力

只有四种主题,名字固定:Mica(默认,只糊壁纸)、Frosted(毛玻璃,透出桌面)、 Dark(纯深色实底)、Acrylic(黑色偏蓝的亚克力)。app.set_theme("frosted") 一行切换,外观、合成方式、tint、暗化系数一次改好。标题栏可以交还给 DWM,让玻璃真正 糊上去;窗口圆角、边框色、标题栏图标与文字的显隐都能单独控制。非 Windows 平台自动 退化为纯色底,不会崩。

页面体系是内置的

PageBase + SidebarNav 直接把「左侧导航 + 右侧多页」这套结构做完了:页面类声明 cards_first 决定首屏出几张卡,框架负责构建调度、切页、预建、换色补画、回收看不见的 页面。你只管写「这一页有哪些卡片」。

语义统一
  • 所有取值型控件统一用 get() 读、set(...) 写;
  • 所有输入类都支持 readonly=,只读时键盘拒、下拉不开、按钮置灰,但程序写入仍然有效, 需要临时写一次用 with widget.unlocked():;
  • 事件回调统一成 on_click / on_change / on_key 这一套,不用记 Tk 的 bind 细节;
  • 布局有 Card.row(),字段名用 FieldLabel 放在行首;输入框、开关这类控件也能 bind_config() 直接绑定配置项,改动即时写回。

能做什么

覆盖的是「桌面工具」的常见组成,而不是玩具控件集:

场景 拿什么做
表单与设置页 输入框、密码框、步进器、开关、单选、分段、滑块、路径选择
数据与配置 表格、树形视图、分页、懒加载长列表、标签选择、树形下拉
引导与流程 步骤条、向导、面包屑、标签页、菜单栏
操作反馈 模态对话框、确认、输入弹窗、轻提示、桌面通知、进度条、环形进度、加载遮罩
内容展示 图片查看器、头像、轮播、代码面板、时间轴、折叠面板、分割面板
选择与输入增强 日期选择、时间选择、取色器、搜索框、范围滑块
窗口本身 毛玻璃材质、圆角、边框、标题栏元素与按键显隐、页面切换

示例

  • 全部控件的实际效果:python examples/basics/window.py(18 个页面);
  • 独立小例子:examples/demo/,包括侧边栏导航、配置绑定、主题切换、组件分行布局等;
  • 在线文档里每个组件都有一节「示例」,可以直接复制运行: https://dashsalter.github.io/ctk-kit/;
  • 文档站首页也放了主要控件的截图。

安装

pip install ctk-kit

依赖 customtkinter(自绘控件底座)与 Pillow(勾选/单选指示符、进度条圆弧、 图片查看器),纯 Python,支持 Python 3.9 – 3.14。

核心库不含任何持久化代码:窗口大小、位置、主题要不要记住、记在哪、用什么格式, 都由你自己的项目决定;把你写好的存储对象传给 App(state=...) 即可(接口见文档站的 App 一节)。仓库里的示例用 conf_base 演示这件事,需要额外装:

pip install ctk-kit[demo]

毛玻璃相关能力依赖 Windows 11 的 DWM,其他平台自动降级。

快速开始

import ctk_kit as ctk

app = ctk.App(title="全部记录", size=(880, 560))

header = ctk.PageHeader(app, "全部记录")
header.info.set_text("共 12 条")
header.pack(fill="x", padx=20, pady=(16, 8))

box = ctk.Card(app)
box.pack(fill="x", padx=20)
ctk.PrimaryButton(box, "新建", lambda: app.notify("已保存")).pack(padx=16, pady=16)

app.mainloop()

文档与仓库

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases ctk-kit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229