Live data from Hacker News

PyQt5 Tutorial: Create a Python GUI in 2018

build-system.fman.io

191–200 of 211 posts

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#193

Too bad it's only for Python3 and installing both 2 and 3 is complicated. Would be a good program if it supported python2.

There are several tools that make having both python 2 and 3 running trivial. Pipenv and conda are probably the two better ones. On the whole you should probably using one of them even if all your development is done with the same python version

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#194

Earlier quoted context omitted.

Looking at a tutorial, it looks like all it does is layout the form for you. That's a shame. Things closer to what the original VB was are sorely missed in modern computing.

Here you go: vTcl -- just like Visual Basic 3.0. Also, you get to use Tcl instead of Visual Basic, so even better ! http://vtcl.sourceforge.net/

Visual Basic 6 compiled to actual native code though, while TCL teached me to never use such languages beyond bare scripting tasks.

Even Visual Basic 3's P-Code interpreter was faster than TCL string based one.

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#195
post #180

I would kind of expect that "in 2018" we'd be using QML and not QtWidgets?

QML is declarative is fine for very simple UIs only. Once you need to start writing any amount of UI logic it gets inconvenient. If you need simply but flashy -> QML, if you need not so flashy but more functional and "standard desktop UI" -> QtWidgets

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#196

Earlier quoted context omitted.

I can't comment for pyQt. But the regular C++ Qt app I'm tinkering with at the moment uses 11MB private and about 50MB in shared memory for displaying a simple window with some nested widgets and scrollable lists.

for reference, the app I'm working on ( https://ossia.io ), a multiple-hundred-LOC Qt-based DAW with support for many network protocols and which uses most Qt libraries as well as boost uses itself 41 megabytes of RAM (private working set) and 70 megabytes total (working set) with a small document loaded, according to the windows task manager.

/me cries in electron

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#197
How is the experience of other folks here? I have found QT as true nightmare. The UX created with QT just doesn’t scale with 4K displays and framework is just pain to maintain on OS like Windows. I rather prefer UX frameworks that uses web technologies any day.

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#198
post #67

I'd like to take this time to introduce a project I have been working on. I'm using it in production currently. https://github.com/qmlnet/qmlnet It is a perfect balance between QML and .NET. The tech stack splits along the perfect line. QML for UI, .NET for business logic. I'd be glad to answer any questions.

How do things work regarding the boundary between .NET and Qt memory management? What was the hardest problem you faced regarding this issue (resource leaks, etc.)?

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#199

The hardest problem in this space is not writing the code, but packaging the app. All the freeze utilities have their quirks which ensure no one solution works for all three OS consistently. Even Dropbox had to rewrite their packaging to ensure maximum system compatibility ( https://news.ycombinator.com/item?id=18067784 )

I created https://build-system.fman.io to help with this exact (general) problem.

whoa... this is so cool. And its based on QT. What do you think of the Dropbox article ?

Re: PyQt5 Tutorial: Create a Python GUI in 2018

#200

Earlier quoted context omitted.

I created https://build-system.fman.io to help with this exact (general) problem.

whoa... this is so cool. And its based on QT. What do you think of the Dropbox article ?

I wish fbs had already existed when Drew Houston started Dropbox ;)
Post reply on HN