Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-html-viewer
PyQt HTML Viewer
https://github.com/yjg30737/pyqt-html-viewer
html-viewer pyqt pyqt-examples pyqt5 pyqt5-application pyqt5-desktop-application pyqt5-examples pyqt5-gui pyqt5-tutorial pyqt5-viewer pyqtwebengine python python3 python37 qt qwebengineview qwebview
Last synced: 9 days ago
JSON representation
PyQt HTML Viewer
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-html-viewer
- Owner: yjg30737
- License: mit
- Created: 2021-12-13T04:01:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T05:29:22.000Z (over 2 years ago)
- Last Synced: 2024-07-30T20:08:53.641Z (4 months ago)
- Topics: html-viewer, pyqt, pyqt-examples, pyqt5, pyqt5-application, pyqt5-desktop-application, pyqt5-examples, pyqt5-gui, pyqt5-tutorial, pyqt5-viewer, pyqtwebengine, python, python3, python37, qt, qwebengineview, qwebview
- Language: Python
- Homepage:
- Size: 15.1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-html-viewer
PyQt HTML Viewer## Requirements
* PyQt5 >= 5.15
* pyqtwebengine // For showing html file## Features
* Being able to view all of html files in the folder
* Being able to see all of html files in the files list
* Being able to see html file when double-clicking one of files in the list
* Being able to view the source of current html file
* Being able to see previous, next html file with left, right key
* Being able to resize each of widgets. (QSplitter)
* Being able to see as a full screen## Setup
```
pip3 install pyqt5 --upgrade # If you don't have pyqt5
pip3 install pyqtwebengine --upgrade # If you don't have pyqtwebengine
pip3 install git+https://github.com/yjg30737/pyqt-html-viewer.git --upgrade
```
Note: If ModuleNotFoundError occured then do it all above in order.## Included packages
* pyqt-style-setter
* pyqt-custom-titlebar-setter
* pyqt-description-tooltip
* pyqt-list-viewer-widget
* pyqt-get-selected-filter## Code Example
```python
from pyqt_html_viewer import HtmlViewerAppif __name__ == "__main__":
import sysapp = HtmlViewerApp(sys.argv)
app.exec_()
```Result
Start page
![image](https://user-images.githubusercontent.com/55078043/161404544-2aeccc11-0c1e-4a20-8333-82ff485f25ac.png)
Viewing html file
![image](https://user-images.githubusercontent.com/55078043/161404550-ee106954-8710-4daf-bba2-543eef8df427.png)
File list
![image](https://user-images.githubusercontent.com/55078043/161404557-e65cde1e-fbf6-42d0-bda6-7c295df6b7d1.png)
Source code
![image](https://user-images.githubusercontent.com/55078043/161404573-40aaa9e7-387b-4ee3-9bf6-16ff0c6edd5f.png)