3 ms·
If Tkinter goes, then Python is dead to me. I use Python for small dep-free single file GUIs for small projects meant to be used by people who have Python inst
by liability 7y ago
If Tkinter goes, then Python is dead to me. I use Python for small dep-free single file GUIs for small projects meant to be used by people who have Python installed but can't be bothered to go through an installation checklist. Tkinter is great for that and is the only reason I bother using Python for anything.
- blhack 7y agoPardon me, but why wouldnt you be able to just run an old python if tkinter came out of the stdlib, or even just package it with whatever you are distributing?
- bobbylarrybobby 7y agoThe point was that it’s much easier to distribute a single file app than it is to “correctly” distribute a full app with dependencies bundled.
- blhack 7y agoCould you use cython to accomplish this? I personally haven’t used it, but looking at some examples it looks really straightforward.
- deleted 7y ago[deleted]
- zbentley 7y ago"pip install --user -r requirements.txt" is not a terribly odious "installation checklist", and I don't think it's the start of a slippery slope towards one either. If you're worried about people not RTFM when using your projects, you could always start your scripts with the standard try/import/except wrapper around the required package, and tell them to run pip install when it's not found--or (and this is a terrible idea) run it in a subprocess for them.
- liability 7y agoAsking my users to use the command line is odious.