From 942f16cdeb6f55cd4e58b30ef96e07220b8c4016 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 24 Aug 2023 15:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 10 +++++++++- about_app.py | 5 ++--- mpd.py | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index 5ac2f72..5353b1f 100644 --- a/Readme.md +++ b/Readme.md @@ -9,9 +9,17 @@ ### 感觉以下第三方库 - [`python-mpd2`](https://github.com/Mic92/python-mpd2), 本项目内置了修改版的`python-mpd2`, 加入了Gtk的信号与槽机制的支持, 并更加友好的方式处理异常, 减少程序崩溃。 -- [`python-mutagen`](https://github.com/quodlibet/mutagen) +- [`python-mutagen`](https://github.com/quodlibet/mutagen), 用于获取歌曲文件内嵌的封面。 +### 项目依赖 +以`debian 12`为例 + +- `python3` +- `gir1.2-gtk-3.0` Gtk3 +- `python-mutagen` 获取歌曲标签信息的库 +- `python-mpd2` MPD连接库(已内置修改版) + ### 开源协议 diff --git a/about_app.py b/about_app.py index 9d0ed2b..3dcecbd 100644 --- a/about_app.py +++ b/about_app.py @@ -1,11 +1,10 @@ #!/usr/bin/env python3 -import gi, sys, os, mutagen -from pprint import pprint as print +import gi gi.require_version('Gtk', '3.0') -from gi.repository import Gtk, Gdk, GLib, GdkPixbuf +from gi.repository import Gtk class AboutWindow(Gtk.AboutDialog): diff --git a/mpd.py b/mpd.py index 3b3c45e..a4d629a 100644 --- a/mpd.py +++ b/mpd.py @@ -18,7 +18,7 @@ # along with python-mpd2. If not, see . import gi -import re, socket, sys, warnings, time +import re, socket, sys, time from enum import Enum gi.require_version('Gtk', '3.0')