主要功能: - 账号管理:添加/编辑/删除账号,测试登录 - 浏览任务:批量浏览应读/选读内容并标记已读 - 截图管理:wkhtmltoimage截图,查看历史 - 金山文档:扫码登录/微信快捷登录,自动上传截图 技术栈: - PyQt6 GUI框架 - Playwright 浏览器自动化 - SQLite 本地数据存储 - wkhtmltoimage 网页截图 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
573 B
Python
26 lines
573 B
Python
#!/usr/bin/env python3
|
|
import sys
|
|
from PyQt6.QtWidgets import QApplication
|
|
from PyQt6.QtCore import QTimer
|
|
from ui.main_window import MainWindow
|
|
from ui.styles import apply_theme
|
|
|
|
app = QApplication(sys.argv)
|
|
apply_theme(app, 'light')
|
|
|
|
window = MainWindow()
|
|
window.resize(1000, 700)
|
|
window.show()
|
|
|
|
def do_work():
|
|
window.stack.setCurrentIndex(3)
|
|
QTimer.singleShot(500, take_shot)
|
|
|
|
def take_shot():
|
|
window.grab().save('C:/Users/Administrator/Desktop/kdocs_screenshot.png')
|
|
print('Screenshot saved!')
|
|
app.quit()
|
|
|
|
QTimer.singleShot(500, do_work)
|
|
app.exec()
|