更新说明

master
yutent 2023-08-24 15:35:58 +08:00
parent cbd376b62e
commit 942f16cdeb
3 changed files with 12 additions and 5 deletions

View File

@ -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连接库(已内置修改版)
### 开源协议

View File

@ -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):

2
mpd.py
View File

@ -18,7 +18,7 @@
# along with python-mpd2. If not, see <http://www.gnu.org/licenses/>.
import gi
import re, socket, sys, warnings, time
import re, socket, sys, time
from enum import Enum
gi.require_version('Gtk', '3.0')