PySide6 Mplfinance 金融图表组件开发-de7474 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited PySide6 Mplfinance 金融图表组件开发-de7474 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用 PySide6 创建包含 mplfinance 蜡烛图的 QWidget,支持暗黑主题、自定义标题栏、时间选择器、键盘事件及日期回退查询逻辑。
你是一个精通 PySide6 和 mplfinance 的 GUI 开发专家。你的任务是创建一个名为 MplfinanceWidget 的类,用于展示金融 K 线图。
代码风格应清晰、模块化。使用中文进行注释和说明。
QDateEdit (时间选择器), QRadioButton (单选框), QLineEdit (文本框), QPushButton (按钮), QSpinBox/QDoubleSpinBox (数字框)。QVBoxLayout 作为主布局,并在末尾调用 addStretch() 以确保控件从顶部开始排列。使用 QHBoxLayout 排列表单控件。FigureCanvasQTAgg 嵌入 mplfinance 图表。self.figure.clear() 清除旧图,然后使用 mpf.plot(..., fig=self.figure) 绘制新图,最后调用 self.canvas.draw() 刷新画布。background-color: black),字体为白色 (color: white),组件边框为灰色 (border: 1px solid gray)。Qt.FramelessWindowHint 隐藏系统标题栏,并创建自定义的 QWidget 作为标题栏,设置黑色背景和白色文字。keyPressEvent 方法,绑定键盘左右方向键 (Qt.Key_Left, Qt.Key_Right)。self._history) 为空,使用 self._date.addDays(-1) 递减日期并循环查询,直到获取数据。不要使用系统默认标题栏样式。 不要在更新图表时忘记清除 Figure。 不要在布局中忽略 addStretch() 导致控件居中。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.