Python qt creator6/10/2023 ![]() Last time it happened so quickly was about 2 decades ago when I tried HTML for the first time. I just derived a class from qdialog, added init method, loaded xyz.ui file and bam, there was a dialog box displaying some text, couple of textboxes and buttons. Okay, I'll just tell you why I think it's simple. PyQt5 can be installed using pip or the Anaconda distribution. You can use Qt Designer to create your GUI and then load it into your Python program using PyQt5. ![]() PyQt5 is a more advanced framework and requires some knowledge of Python and object-oriented programming, but it provides a lot of flexibility and advanced features. It allows you to create sophisticated GUI applications that run on any platform that supports Qt, including Windows, Linux, and macOS. PyQt5: PyQt5 is a popular Python binding for the Qt GUI toolkit. It also has a lot of examples and a helpful community to get started. You can install it using pip and start building your GUI program using the simple PySimpleGUI syntax. PySimpleGUI is designed to be easy to use and requires no knowledge of GUI programming. It is a cross-platform library that works on Windows, Linux, and macOS. PySimpleGUI: PySimpleGUI is a Python GUI framework that allows you to create simple and complex GUI applications with just a few lines of code. ![]() In 2023, there are several ways to create a simple program in Python with a graphical user interface (GUI) that runs on any operating system (OS), even if you have no programming experience. What's the best way to create a simple program with a GUI in 2023 for a complete noob that runs in any OS?ĬhatGPT's answer to this question (note my edit) is: If you learn how to use Tkinter first, then using any of its derivatives at a later date should be fairly easy. There are also several GUI toolkits that are based on Tkinter (addressing some of Tkinter's limitations). If your application really needs support for drag and dropping files, then I'd suggest using a different GUI toolkit instead of Tkinter. For drag and drop (with files) support, Tkinter requires an additional Tcl extension. One thing that is notably missing from Tkinter is drag and dropping files onto the application. Personally I think that in 2023 they look OK even if not as trendy as some other GUI toolkits. Tkinter has a reputation for creating ugly GUI'sb but I think that opinion is largely based on old versions. It also helps that there are a lot of free tutorials to help get started with Tkinter. Tkinter is relatively easy to use, though all GUI toolkits have a learning curve. I'd suggest using Tkinter as it requires nothing else other than Python (though for many Linux distributions, only the core library is installed by default and Tkinter needs to be installed separately). Which do you recommend me to choose and can you also recommend a good tutorial on that?ĮDIT: I also need the program to run at least on Linux Mint (my OS) and Windows (other people's machines) and has to be offline, no web apps as I won't have internet most of the time.ĮDIT#2: Came back now to see the replies and just realized this blew up! Thank for all the replies! I see there are several ways to create programs with GUIs for Python, like Qt and Tkinter, but am unsure which is more recommended for a complete noob. ![]() Since I've repeatedly seen other people recommending to actually start building something you need/want as a better way to learn Python I thought I'd do just that in this case! ![]() Tried doing courses, reading books, watching videos, but they all bored me and never went anywhere with it. I have no knowledge of Python except for some very basic concepts. It's the type of thing you could easily do in Excel, but I want to try Python and see how it goes. I want to make a very simple program that anyone can use with a GUI in which I insert a few values and then it does all the calculations to get the result. ![]()
0 Comments
Leave a Reply. |