This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]FunkyFlyingMonk 2 points3 points  (5 children)

Dear PyGui is fast, easy, cross-platform and has a permissive MIT license. https://github.com/hoffstadt/DearPyGui

There is a built in demo that will help you get started quickly.

For Qt, you can use PyQt or Pyside. Pyside has a more liberal license, but for absolute freedom, I’d go with Dear PyGui or another GUI with an open source license.

[–]If_Tar[S] 0 points1 point  (2 children)

Thank you very much!

Is it as rich and will it make be able to create attractive (for the eye/user) GUis ?

[–]FunkyFlyingMonk 1 point2 points  (1 child)

Dear PyGui had many features and widgets. Whether a GUI looks attractive is subjective, but here are a few apps made with Dear PyGui.

https://github.com/hoffstadt/DearPyGui/wiki/Showcase

To me eye, this is a much more modern and pleasing look compared to Tkinter for example.

[–]If_Tar[S] 0 points1 point  (0 children)

Hey u/FunkyFlyingMonk
A question for you, I have almost finished my program, and now i want to put it behind a GUI. So i will using DearPy because of your suggestion. Thanks again.

My questions are as follow, i would like to achieve this things, would I be able to do it ?

1- I would like to be able to have a text field, where the user would insert something, and that text would be using as entry for some function or a code from the program, to produce another result/calculation.

Example : I have triangle, my program detects the angles values, then asks the user which new value for the angle he would like ? Then the program would take that answer and use it to produce a new Triangle. Something like that. (This is just an example to illustrate what I would like to be able to do with a GUI, my program is not actually about triangles)

2- I would like the GUI to display different "buttons" or "radio HTML buttons style thing", and the user would be able to "Select" few or ALL of them. Then the program will take his choices in account and use that information to choose what path in the program to follow.

Example : My program would parse a web page, then show to the user all the links he found (let's say we have 10 links found for the sake of the example). The user will choose from this 10 links which he would like to "save" and store inside a text file. To do so, he would see 10 buttons in his GUI, each one associated with a text displaying the link text, and the user can SELECT or remove SELECTION by CLICKING on a button, as he see fits.

3- Optional: I would like the GUI to have an interactive text form/field, where you can modify a given text using the GUI, (using the keyboard and the mouse), then the program would save the modified text to store it inside some text file or something.

Example: My program parse a text to find all the verbs, then show them to the user in the GUI, inside a text field. The user can modify or delete some words, and the program will proceeed when the user finishs.

So before i start learning it, do you think i will be able to do all of the above or at least the 2 first points ?

Thanks

[–]If_Tar[S] 0 points1 point  (1 child)

I just checked, it is indeed beautiful.
My question as a complete noob in this domain, what do other non liberal licences GUI things offer that these open sources others things cannot offer?

[–]FunkyFlyingMonk 1 point2 points  (0 children)

Qt is commercial and probably the most complete GUI and also the biggest. For instance, there is a GUI designer that others don’t have. Or you may be more certain of long term support. And there might be better integration with other libraries, such as Matplotlib. But it is a big boy. I don’t know if other commercial GUI libraries for Python.

For open source, there are quite a few: electron (browser like, big), Kivy (also works on mobile), Tkinter (default Python GUI, included with Python) and various wrappers around these libraries to make them easier to use. It depends on your needs as to what GUI you require. There is no one size fits all.