3 ms·
Stellar example of why things, such as GUI, should be part of batteries included with a language. Swing might not be the prettiest one, but I can at least slee
by wiseowise 3y ago
Stellar example of why things, such as GUI, should be part of batteries included with a language.
Swing might not be the prettiest one, but I can at least sleep soundly knowing I won’t wake up to subscription bill tomorrow.
- nnevatie 3y ago> with a language I think it simply wouldn't work. Which kind of GUI (library) would C++ have, imagining it came with one?
- lolinder 3y agoYou missed that they gave an example that does work—Java Swing is bundled with the JVM, making it more or less part of the standard library. Python itself also has Tkinter, which exists inside the cpython repo and is installed with Python [0]. C++ may not work, but most other languages (especially VM-based) can and many do. [0] https://github.com/python/cpython/blob/3.12/Lib/tkinter/__init__.py https://github.com/python/cpython/blob/3.12/Lib/tkinter/__in...
- Y_Y 3y agowxwidgets, or maybe they'd just go crazy and build Qt in
- nequo 3y ago> Stellar example of why things, such as GUI, should be part of batteries included with a language. But it is part of the batteries with Python: https://docs.python.org/3/library/tkinter.html https://docs.python.org/3/library/tkinter.html
- FuturisticGoo 3y agoBut Python does have a GUI library in its standard library, tkinter, which is a port of tk/tcl. PySimpleGui simply provided an abtraction layer on top of multiple GUI toolkits, including tkinter.
- maxnoe 3y agoPython actually comes with one, tkinter. https://docs.python.org/3/library/tkinter.html https://docs.python.org/3/library/tkinter.html