Skip to content

Instantly share code, notes, and snippets.

View RickBarretto's full-sized avatar
🎯
Focusing

RickBarretto RickBarretto

🎯
Focusing
View GitHub Profile
@RickBarretto
RickBarretto / QImageViewer.py
Created April 14, 2021 20:18 — forked from acbetter/QImageViewer.py
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
@RickBarretto
RickBarretto / distribute-windows-msys2.md
Last active April 24, 2024 14:38 — forked from mjakeman/distribute-windows-msys2.md
An easy way to distribute GTK applications and dependenices on Windows

Distribute GTK Apps with Windows (MSYS2)

Make sure package mingw-w64-x86_64-gtk4 is installed. Build your project with a custom prefix (e.g. ~/my-gtk-app-prefix). Navigate to this directory such that you have subdirectories 'bin', 'lib', 'share', etc containing the executable to distribute.

If you want to compile with Adwaita, please check if the package mingw-w64-x86_64-libadwaita is installed. 😉

1. Dependent DLLs

The following command copies all dependent DLLs to the current directory: