News for hackers. Stuff that matters.
Re:PyQt5 Tutorial: Create a Python GUI in 2018 by kelvin0 on Tuesday September 25, 2018 @01:03PM (#18068172)
I've been using wxPython for many years, and it works very well. What are the advantages of PyQT over wxPython? Anyone experienced both 'worlds' in a non-trivial application?
Re:PyQt5 Tutorial: Create a Python GUI in 2018 by kbumsik on Tuesday September 25, 2018 @01:17PM (#18068310)
1. wxPython has inconsistent looks and layouts between platforms and monitor resolutions (or DPI). For example, on PlayOnLinux GUI app I cannot click an "OK" button while using Surface Pro because the button is hidden outside of the window.

2. QML is an amazing language. It is modern, declarative and reactive but still very simple to use. Personally I don't want to go back to the traditional GUI coding styles after experienced QML.

3. Qt Designer is a great GUI tool that you can quickly prototype a GUI app.

4. Qt has the best documentation among cross-platform GUI frameworks.

5. Qt is a much bigger framework having more features. For example, you can easily embed WebKit or Chromium very easily.

Re:PyQt5 Tutorial: Create a Python GUI in 2018 by gardaani on Tuesday September 25, 2018 @02:26PM (#18069047)
The article doesn't mention QML at all. Is it possible to use it with Python?
Re:PyQt5 Tutorial: Create a Python GUI in 2018 by blattimwind on Tuesday September 25, 2018 @02:50PM (#18069268)
Of course.
Re:PyQt5 Tutorial: Create a Python GUI in 2018 by sago on Tuesday September 25, 2018 @03:11PM (#18069470)
Is number five true? (Genuine question.) I haven't used QT in anger, and it's been a few years since I last wrote something in WXP. But the last project went with wxWidgets because of its built-in support for things like drag-and-drop negotiation, (multiple) file type association, undo, print, file preview, system level common accelerators and OS defined accessibility settings (including color and font remapping, speech to text, keyboard navigation, and screen readers). In my mind they are more important than the widgets for building a practical tool. Is QT on par with those?

To join in this comment thread's Electron-ragging, I often find it frustrating that the hard-won OS idioms of the last 20 years have been left so easy to jettison in the age of apps.

Re:PyQt5 Tutorial: Create a Python GUI in 2018 by toyg on Tuesday September 25, 2018 @03:26PM (#18069640)
Qt has tons of stuff, as far as I know everything you mention is covered pretty well (well, I don't know about speech, but widget text is very accessible).

QT is basically one of two toolkits that most Linux desktops are built on: it has to be wide-ranging enough to cover everything a desktop does, be accessible, and it has to interoperate with "the other" toolkit (GTK). It's absolutely nothing like Electron.

Re:PyQt5 Tutorial: Create a Python GUI in 2018 by fireattack on Tuesday September 25, 2018 @03:28PM (#18069659)
Can vouch that wxPython's documentation is very lacking even from my limited use experience.
Re:PyQt5 Tutorial: Create a Python GUI in 2018 by mherrmann on Tuesday September 25, 2018 @01:05PM (#18068195)
The reason why I chose PyQt over wxPython was the former's support for custom styles. I wrote an article with my thoughts on picking a GUI framework [1], in case you're interested.

1: https://fman.io/blog/picking-technologies-for-a-desktop-app-...

Re:PyQt5 Tutorial: Create a Python GUI in 2018 by solarkraft on Tuesday September 25, 2018 @01:25PM (#18068396)
I am super happy that you seem so dedicated to providing a good UI library in an attempt to keep people off of Electron (I find one of the biggest hurdles to be the ease of getting started/iteration speed).

Dumb question time: Is this also usable with QML?

Re:PyQt5 Tutorial: Create a Python GUI in 2018 by Siecje on Tuesday September 25, 2018 @05:00PM (#18070433)
You can use PyQt5 with QML here is a simple application https://github.com/siecje/qml-testing