News for hackers. Stuff that matters.
Re:Racket Is an Acceptable Python by copperx on Thursday July 11, 2019 @03:57PM (#20415182)
Being inexperienced with modern Python, that leads me to ask, what's the story with GUI work on Python? Are there any good libraries?
Re:Racket Is an Acceptable Python by darkpuma on Thursday July 11, 2019 @04:09PM (#20415282)
Tk from python is pretty damn convenient, being as it's always there. Not the most modern toolkit for sure, but always being there is a pretty compelling feature for some GUI projects.
Re:Racket Is an Acceptable Python by deckiedan on Thursday July 11, 2019 @05:25PM (#20415997)
Since it came up, Tkinter's drag and drop story is pretty grim too.

I've used Tkinter with python to make a whole bunch of quick utilities (sync tools for non-techies, XML editing stuff for file applications which lack needed tools, etc.) and think it's very under appreciated.

Re:Racket Is an Acceptable Python by aidenn0 on Thursday July 11, 2019 @04:23PM (#20415418)
FWIW, ubuntu python3 does not install Tk by default.
Re:Racket Is an Acceptable Python by usbseeker on Thursday July 11, 2019 @04:31PM (#20415513)
Don't use system python. Use a virtualenv and install your own python. I would expect system python to only install what is needed.
Re:Racket Is an Acceptable Python by JadeNB on Thursday July 11, 2019 @05:17PM (#20415933)
I think aidenn0 was just replying to the claim that "it's always there".
Re:Racket Is an Acceptable Python by mehrdadn on Thursday July 11, 2019 @06:06PM (#20416333)
It's not always there. Like it's not there on MSYS2.
Re:Racket Is an Acceptable Python by glenneroo on Thursday July 11, 2019 @04:09PM (#20415285)
My limited experience with PyQt3 says it isn't horrible and seems to cover most bases.
Re:Racket Is an Acceptable Python by jononor on Thursday July 11, 2019 @06:12PM (#20416383)
Qt3?? Qt4 came out in 2005 and Qt5 in 2013. So Qt3 and 'modern Python' don't seem to have much in common.
Re:Racket Is an Acceptable Python by glenneroo on Thursday July 11, 2019 @08:23PM (#20417101)
Thanks - I actually meant PyQt5! I don't know where PyQt3 came from... probably related to only finding info on specific functions often leading me to Qt3 docs.
Re:Racket Is an Acceptable Python by mehrdadn on Thursday July 11, 2019 @06:05PM (#20416325)
I seem to recall the download is humongous?
Re:Racket Is an Acceptable Python by glenneroo on Thursday July 11, 2019 @08:31PM (#20417137)
What do you consider humongous? On my Windows Machine it's 100MB (assuming I'm counting the right directories).
Re:Racket Is an Acceptable Python by mehrdadn on Friday July 12, 2019 @12:32AM (#20418189)
Yeah that's beyond humongous, that's just ridiculous. :-) I was imagining it was more like 60MB.
Re:Racket Is an Acceptable Python by glenneroo on Friday July 12, 2019 @07:27AM (#20419868)
On which platform/hardware is 100MB ridiculous? I was using it on my Raspberry Pi with a 32GB MicroSD card which cost ~10€ for the High Endurance version (officially supported by SanDisk for Linux/Pi) i.e. 100MB is peanuts.

Also the difference between 60MB and 100MB isn't huge, so using the word ridiculous is IMO a bit over-dramatic.

Re:Racket Is an Acceptable Python by mehrdadn on Friday July 12, 2019 @07:42AM (#20419935)
On whatever platform. Requiring a user to download and install a 100MB+ framework just to show a basic GUI is just ridiculous. Even Sublime is 33 MB and I see that as bloated, and that's including its separate copy of Python itself...
Re:Racket Is an Acceptable Python by glenneroo on Friday July 12, 2019 @02:44PM (#20423249)
Maybe it's because PyQt is a lot more than just a basic GUI[0].

> PyQt is one of the most popular Python bindings for the Qt cross-platform C++ framework.

And why are you comparing an editor to a GUI framework? Or is there a GUI framework also called Sublime?

[0]: https://wiki.python.org/moin/PyQt

Re:Racket Is an Acceptable Python by floatboth on Thursday July 11, 2019 @07:21PM (#20416796)
GTK works great with Python (like with most scripting languages really).
Re:Racket Is an Acceptable Python by Madzen1 on Friday July 12, 2019 @12:58AM (#20418303)
Turtle