Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.94 KB

README.md

File metadata and controls

59 lines (43 loc) · 1.94 KB

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

Code Example

from pyqt_html_viewer import HtmlViewerApp

if __name__ == "__main__":
    import sys

    app = HtmlViewerApp(sys.argv)
    app.exec_()

Result

Start page

image

Viewing html file

image

File list

image

Source code

image