Skip to content

Instantly share code, notes, and snippets.

View madpul24's full-sized avatar
🪲
Working from home and another place

Ahmad Saiful madpul24

🪲
Working from home and another place
View GitHub Profile
@acbetter
acbetter / QImageViewer.py
Last active June 30, 2024 20:06
Image Viewer Example by PyQt5 and Python 3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog