Code Monkey home page Code Monkey logo

floating_ball's Introduction

floating_ball

基于pyside6开发的windows平台悬浮球工具

“双窗口悬浮球.py”用于在解释器内运行

“双窗口悬浮球_编译.py”用于pyinstaller打包

启动后显示一悬浮球窗口

image-20230311223719912

触摸点击或鼠标点击后显示菜单

image-20230313191943992

各按钮功能

  1. 启动任务视图
  2. 启动quicker
  3. 切换显示器,用于将悬浮窗直接移动到另一显示器上,也可以通过鼠标拖动到另以显示器实现
  4. 返回悬浮球
  5. 显示桌面
  6. 启动任务管理器
  7. 启动utools
  8. 截图

对于中间滑块,拖动滑块部分调节音量、拖动中心部分移动窗口、单击中心部分播放或暂停音乐

程序启动会同时创建一托盘图标,左键单击托盘负责隐藏或显示悬浮球,右键托盘可选择“退出”关闭程序

image-20230311223919007

编译

pyinstaller编译命令

pyinstaller --onefile --noconsole --icon=.\images\float.ico --add-data ".\images;images" --add-data "C:\Users\rzdby\anaconda3\lib\site-packages\PySide6\plugins\platforms;platforms" 双窗口悬浮球_编译.py

其中,路径

C:\Users\rzdby\anaconda3\lib\site-packages\PySide6\plugins\platforms

需要设置为对应QT platforms路径

可以利用“双窗口悬浮球.py”内

import os, PySide6 
dirname = os.path.dirname(PySide6.__file__)
plugin_path = os.path.join(dirname, 'plugins', 'platforms')
print(plugin_path)

获取该路径

floating_ball's People

Contributors

cnbright avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.