A long time ago I "wrote a web browser". Those there are some very heavy quotes. You may imagine me doing air quotes while I write it, maybe?
That's because I didn't really, what I actually did was write UI around Qt's webkit-based widget. It was a fun project, specially because I did it with the absurd constraint of staying below 128 lines of code.
And then I did not touch if for six years. But yesterday I did.
commit 0b29b060ab9962a32e671551b0f035764cbeffaa Author: Roberto Alsina <email@example.com> Date: Tue Oct 30 12:32:43 2018 -0300 Initial PySide2 port commit 831c30d2c7e6b6b2a0a4d5d362ee7bc36493b975 Author: firstname.lastname@example.org <email@example.com@1bbba601-83ea-880f-26a2-52609c2bd284> Date: Fri Jun 1 15:24:46 2012 +0000 nicer, smaller margins
Six years is a long time. So, nowadays:
- I prefer my code to be formatted better
- Python 3 is the thing
- PySide is official, so I would recommend using it instead of PyQt
- Qt is now on version 5 instead of 4
So, with those new constraints in mind, I ported DeVicenzo to the latest everything, formatted the code properly using black, and expanded by line limit to a generous 256.
And Here it is ... it's not realy useful but it is an example of how expressive the Python/Qt combination can be, even while being an absurdly bad example nobody should follow (Oh, the lambdas!)