Metadata-Version: 2.4
Name: efileshow
Version: 1.0.0
Summary: E 文件查看/作图工具（纯 PyQt5 + pyqtgraph 版，界面与 C++ 版共用同一份 .ui）
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: PyQt5
Requires-Dist: pyqtgraph
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# efileshow（Python 版）

E 文件查看/作图工具，纯 PyQt5 + pyqtgraph 实现（界面文件与 C++ 版共用同一份 `.ui`）。
Windows 和 Linux 都能跑。

## 安装环境

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

在 `pyqt` 目录里执行（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
```

## 运行

**方式一：源码目录里跑**（`pyqt` 目录需完整，上一级要有 3 个 `.ui` 和 `images/`）

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

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

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

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

命令名是 `py_efileshow`，`efileshow` 留给 C++ 版（`bin/efileshow.exe`），免得撞名。
卸载：`pip uninstall efileshow`。

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