Metadata-Version: 2.1
Name: efileshow
Version: 1.2
Summary: E 文件查看/作图工具（纯 PyQt5 + pyqtgraph 版）
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: PyQt5
Requires-Dist: pyqtgraph

# efileshow —— E 文件查看/作图工具（PyQt5 + pyqtgraph）

E 文件查看/作图工具，纯 PyQt5 + pyqtgraph 实现（界面来自程序目录的 `.ui` 文件）。
Windows 和 Linux 都能跑。

## 安装环境

需要 Python 3.8 以上（Windows 装 Python 时勾选 *Add Python to PATH*；Linux 用发行版自带的
`python3`，没有 pip 就先 `sudo apt install python3-pip`）。

在程序目录里执行（Linux 上是 `python3 -m pip install ...`）：

```bash
pip install -r requirements.txt
```

网络慢可以换国内源：

```bash
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
```

如果拿到的是 wheel 安装包，直接装它就行（依赖会自动拉）：

```bash
pip install efileshow-1.0.0-py3-none-any.whl
```

（可选）自己打 wheel，需要先 `pip install wheel`：

```bash
python setup.py bdist_wheel            # → dist/efileshow-1.0.0-py3-none-any.whl
```

## 运行

**方式一：源码目录里跑**（程序目录需完整，包含 3 个 `.ui`）

```bash
python run.py                          # 打开上次的文件
python run.py 某个文件.e                # 打开指定文件
```

Windows 上就是 `python run.py`；Linux 上用 `python3 run.py`（或者在别的目录里写全路径
`python 路径/efileshow/run.py`）。

**方式二：装成 wheel 后跑**（不依赖任何目录）

```bash
py_efileshow                           # 等价于 python run.py
py_efileshow 某个文件.e                 # 直接打开指定文件；路径带空格要加引号
python -m efileshow 某个文件.e          # 如果提示 "'py_efileshow' 不是内部或外部命令"（Scripts 不在 PATH）就用这条
```

命令名是 `py_efileshow`。卸载：`pip uninstall efileshow`。

打开后是最大化窗口，关掉窗口程序即退出。
配置（最近打开的文件、上次目录）用 Qt 的 QSettings 存：Windows 在
`%APPDATA%\efileshow\py_efileshow.ini`，Linux 在 `~/.config/efileshow/py_efileshow.ini`。
