News for hackers. Stuff that matters.
Re:Reasons to prefer Linux over Windows (2014) by scarygliders on Sunday November 15, 2020 @10:15PM (#25107565)
Nope, you can also use Python, like I do with my 3rd party Elite: Dangerous application: https://captainslog.scarygliders.net/captains-log-2/

All written in Python, recently moved to Qt5 and PySide2, runs on Windows and when I figure out packaging for Linux (probably AppImage) will release it for Linux as well.

I believe there are Qt bindings for other languages too.

So you're not stuck with C++ :)

Re:Reasons to prefer Linux over Windows (2014) by RMPR on Monday November 16, 2020 @02:57AM (#25109235)
I like that UI! Out of curiosity, do you use a kind of wysiwyg (a la qt designer) to make your interfaces, or do you write Python code directly? Coming from JavaFX using scenebuilder to design UIs, l tried Pyside2 some years ago, never managed to find a way to make it work with a wysiwyg the way I am used to with JavaFX. Writing and styling widgets by hand is painfully slow.
Re:Reasons to prefer Linux over Windows (2014) by scarygliders on Monday November 16, 2020 @06:57AM (#25110636)
Thanks :)

I use Qt Designer for the layout. I never could get the hang of the Horizontal & Vertical spacers or the Layout Managers in Qt, so it's a static layout.

There are quite a few "pages" in the application which appear or disappear when required. Those are all QWidgets which have their own static layout.

The doughnut chart showing materials available on a planet is a dynamically created web page shown via a QtWebView widget.

There's an Overlay Widget which is basically a QWidget with transparency, with the main window being hidden then called up via a global hotkey - I use Python ctypes to enable the global hotkey, calling the Windows API to enable that functionality.

And the underlying databases used are sqlite3 via SQLAlchemy.

It all works very nicely.

Re:Reasons to prefer Linux over Windows (2014) by Anon4Now on Sunday November 15, 2020 @10:38PM (#25107683)
Nice. I didn't know that there were bindings for other languages now.