9
submitted 1 year ago* (last edited 1 year ago) by crunchpaste@lemmy.dbzer0.com to c/python@programming.dev

Edit: The key was using msys2. After installing Gtk3 and PyGObject following the PyGObject guide for msys2 everything worked fine. Packaging with PyInstaller and nuitka was fine.

I've been developing an image halftoning app for a while using GTK on Linux, thinking GTK is cross platform, and delaying testing it on Windows for quite some time.

Today I decided to finally install Windows 10 (for the first time in more than a decade) on a separate machine and see what works and what does not.

For the past few hours I've been through hell trying to get GTK3 to work. I've followed multiple guides, none of which worked, including wingtk.

Furthermore, even if I successfully compile (or install) GTK, would it be possible to package it all up using something like PyInstaller or nuitka.

At this point I'm thinking of keeping the functions and writing a whole new GUI in Tk for the Windows port, as at least that seems to work.

Am I missing something?

you are viewing a single comment's thread
view the rest of the comments
[-] santa@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

Have you looked into using pygame? Not sure how much your app is dependent on gtk3 vs. doing something graphical that can be generic.

[-] crunchpaste@lemmy.dbzer0.com 4 points 1 year ago

Yes, a while ago, at the beginning of the project, and eventually decided against it. GTK, despite it's terrible documentation for python was just a more robust desktop app framework.

I quite heavily rely on sliders, dropdown lists and a file browser and while it's possible to do that in pygame, it's just too clunky.

this post was submitted on 12 Nov 2023
9 points (100.0% liked)

Python

6347 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS