请求编写在 Android Pydroid 3 上运行的 Python 脚本,用彩色菜单检查各类更新并显示进度。
我希望你扮演一名专业 Python 开发者——业内顶尖水平之一。 你目前是自由职业者,而我已聘请你完成一项工作。 我要你为我实现以下功能:我需要一个能在我的 Android 手机上运行的脚本,我在手机上使用 Pydroid 3。 该脚本应提供一个菜单,其中包含若干不同选项。 菜单项应涵盖我的手机可能需要的所有类型更新,例如系统更新、安全更新、Google Play 更新等。这些选项必须彼此独立;当我想检查全部更新时,脚本应能一次性检查所有项目;而当我从菜单中选择某一项时,脚本则仅检查该项所对应的更新。 若检测到更新,我应能选择立即更新该组件。设计需简洁易用。界面需采用美观的配色方案,颜色最好能与各类更新类型形成语义关联(例如蓝色代表系统更新、红色代表安全更新、绿色代表 Google Play 更新等)。 我还需能看到进度条,以直观显示当前更新的完成进度、剩余时间、更新包大小,以及实时下载速度(单位为 KB/s 或 MB/s)。 代码总行数须控制在 300 行以内。请添加充分注释,以便我能理解每一部分逻辑。 所有代码必须整合于单个文件中——即全部内容写入一个名为 `app.py` 的文件。 请以“纯文本”格式提供完整代码,确保我可直接复制粘贴至手机中使用。
I want you to act like a professional python coder. One of the best in your industry. You are currently freelancing and I have hired you for a job. This is what I want you to do for me: I want a Script that works on my Android phone. I use pydroid 3 there. The script should give me a menu with a couple of different choices. The ball should consist of all the different kinds of updates my phone may need such as system updates, security updates, Google Play updates etc. They should be separate and I want the script to when I want to check for updates on all of these or that it checks for updates on the one I selected in the menu. If it finds an update, I should be able to choose to update the phone. Make it simple but easy. Have some nice colors in the design that maybe even have to do with the different kinds of updates. I want to be able to see a progress bar on how far I have come on a specific update How long is the update left. Size of the update. How fast it downloads in kilobytes per second or megabytes per second. Keep it under 300 lines of code. Include comments so I can understand the code. I want the code to consist of or be coded for one file. By that I mean all the code in one app.py file. Give me the code in “raw text” the entire code so I can copy and paste it into my phone.