Python GUI Development With PySimpleGUI
HTML-код
- Опубликовано: 21 июл 2024
- Creating a simple graphical user interface (GUI) that works across multiple platforms can be complicated. But it doesn't have to be that way. You can use Python and the PySimpleGUI package to create nice-looking user interfaces that you and your users will enjoy! PySimpleGUI is a new Python GUI library that has been gaining a lot of interest recently.
Click here to learn more: realpython.com/courses/simpli...
PySimpleGui rocks! I discovered it when I was trying to write a front end for an emulator. Not only was I able to do so in a ridiculously small amount of code, but by changing a single line of that code I was able to make it work for other emulators as well.
This is a great library. Just finished a GUI based interoperability project for work with this library simply but powerful.
Please leave all the URLs you refer to in the video description! It's so much more convenient that way - and of course it also links more people to your website ;)
Thanks, this video made sure that I will never forget the name of this package next time I need to pip install.
PySimpleGUI...for the 567 time...sure after this video I talk in my sleep "PySimpleGUI"!
Damn you!!!!! now that's all I can hear. lol.
🤣
I guess it was PySimpleGUI 😂
Forreal
What is it?....Monorail!.... Monorail! I mean PYSimpleGUI
Very concise with lots of useful examples, step by step presented. Thanks.
Finally a clean simple solution for small projects and stuff, thank you so much!!!
This was very helpful!
Thank you!
I've been cobbling together a chat server using pure python and have found limitations with Tkinter. This library is a game changer, thanks so much!! I look forward to the next lesson
what limitations did you encounter?
You might like pyqt designer
@@mrmartinwatson1 Thanks for the tip Martin. Qt designer does look like a good option!
@@tylercoombs1 I also wonder what the limitations you found were, since I've only ever used tkinter thus far.
@@opus_X Mainly stylizing, give a window a cleaner look
I learned a whole lot in just 15 minutes
"Nice interface" is really a generous compliment, but... it seems to work well.
Like the girls, the easyest looks more beauty 😂
You made it look so easy.
To offer a correction : The Window element "margin" is not how big the UI window will be in pixels, this is "size". "margin" is literally a margin inside the window (in pixels).
Thanks
The tutrorial is excellent!
It works awesome, very easy to use!
Was so happy to find this package. Used it to automate my timesheets at work to save my brain numbing Jira shit
Hi, can I install PySimpleGUI onto a pyboard and interact with the GUI with a touchscreen? i want to work on a project that involves creating an RC transmitter to control a RC device.
Is the next video on PySimpleGUI coming soon?
Very helpful video.... Thank you
Great Video …. Thank you very much
Is there any IDE for UI, like Visual Studio for c#
how to set a background image in layout ?
What a great video, ty!
Nice, thanks!
Visiuals like Java AWT from way back, architecture like WINAPI 32 and verbosity en par with Java except no support from IDE with all those magic strings...
Wow, thanks!
I had a quick look at the docs. Doesn’t seem to use asyncio. Pity.
in your code you have no with " sg.Column(file_list_column), " but i do
it says its not defined
Oh cool! A video from 2003 :)
N O I I C E ! ! 👍🏼👍🏼
Nice tutorial, thanks :)
Challenge: drink a shot every time he says PySimpleGUI
Thank you, Good Gui App.
Help my IMG.viewer did not work on the terminal. It gave me error
Very nice, thanks
Wow - tkinter is ancient. I remember I didn't like it back in 1998. And PySide2 was 2 yeears late to Qt5 compatability compared to PyQt5. Many of the older PySide2 examples are for older Qt, and out of date. So, what is the actual advantage other than PySide2 allows you to write closed source code? Why should I use this and not keep using the more modern, more opensource friendly PyQt5?
Probably because if you want to profit off of an app, you need to buy a PyQt license which costs over $550 dollars.
Has no Sciter port, RustDesk uses Sciter, looks beatiful
Does anyone know how to make a scrolling rect object for pygame with PySimpleGUI. This would hold all the buttons for buildings and their prices for a clicker game
Amazing user interface
not sure if amazing is the right word but definitely useful
They are hideous
how do i put a transparent word in the text box?
how to enter current time by pressing button..pls someone help....
If only it would look like more like the respective GUI… especially on macOS, this stands out like a sore thumb.
This is why cross-platform gui tools are no good except for quick noddy ad hoc tools.
Source for the image viewer. Please.
how to resize the image?
Nice.
Is there a GUI like visual basic
what mockup software you have used? I've been looking for it for a long time...
No need for mock-up software.
Just use a piece of paper, draw the widgets, then write the layout definition array, just like it looks on your paper.
Or use the Designer app for PySimpleGUI.
It might be Balsamiq Wireframes
that mockup is just a single image and he didn't show any dynamic behaviour, so he may used a free tool like pain net
can this be replaced by 'flet' now?
It will be great if you can make a video on pywebview
If possible flask included 😅
Thanks 🙂
Would you like some Whiskey with your order too? Lol.
Great tutorial, but could this library exported with the python application so it works directly on users PC's .
Yes, all Python app deployment tools such as PyInstaller (installers or things that package a Python app into a single file) will include all the dependencies, such as this GUI library so that it easily (trivially?) installs and runs on an end-user’s machine, without the user having to know anything about Python and all the pieces.
sadly it wont work for me it just keeps popping up a error for "PySimpleGUI" line 3
So what’s the name of that thing again ?
How can I maximize a window? Can I add a button manually?
Read display size from environmental parameters and go from there? Unless there is window.maximize() method...
he didn't joke when he said `simple` .... oh man....that theme though
I thought this tut was good until i notaced that id doesn't work in py charm i did the same but it said that a list can only contain intigers and slices!
How is this compared to PyQt
How to make this PysimpleGUI into an App with shortcut?
Can this be use in a raspberry pi and use the gpio?
tkinter does, why not...
why for me the image does not appear what wrong i made? can someone help me
idk i have the same issue
Using qt with the designer is way simpler, and looks much nicer.
But due to Qt's license, there are a lot of situations where you wouldn't want to use Qt
@@TheyCallMeHacked LGPL is actually quite permissive... it allowes for both open and closed source distribution.
@@MrWorshipMe But PyQt is not available under the LGPL, only GPL and commercial.
@@NVidea-yz1fg pyside has the lgpl option.
Kivy is MIT licensed I think and really nicely written.
Where is the next video?
✯✯✯✯ *How did you run the code? where did you go to run it?*
You need a terminal to run it. Luke cmd /Terminal.
Why they didin't develop a drag and drop controld, it will be better
Is it not jee-you-eye?
Dude! Thank you. I hate TKinter so much. I’m rebuilding all my scientific scripts with guis.
if only it intermingles well with opengl :(
Great tutorial but if I hear GUI as gooey one more time I'm going to lose my mind haha
how to enter current time by pressing button..pls someone help....
.when i add an icon and convert .py to .exe .,,,when I place the .exe on other pc the icon disappears ....can anyone help???
Can I use SQL or plsql in the backend ?
Yes, you can use a Python database access library to use SQL, just like for any other Python program.
This solved my problems with tkinter thanks heaps
What about kivy ?
it might be better, but it's easy?
PySimpleGUI syntax feels a little bit less intuitive than Tkinter's, but maybe that's me being too accustomed to tkitner.
Nice very nice but nothing has caught up to Visual Basic. I did GUI programing almost 20 years ago
I'm new to coding.
Is that "simple"???
I mean, i just saw a 15 min video of coding!!
It is so difficult to create a compiles with a drag and drop to window UI?
Years ago, i used Visual studio and had exactly that.
You could design a windows app just by dragging and dropping buttons and styles into a window.
Later by clicking them, of course you programming them to do whatever you wanted !!
so not drag and drop ? So 80's
What was the module again? Oh ya.. pysimplegui
RAD wersion please like Delphi
Tkinter also good
Py SimpleGUI is a library that uses TKinter. It makes that simpler to use.
@@glennmeader626 yeah i know i used it before its awesome
I´m a Web Developer and I love how simple this gui works, but is there a possibility to make this gui look a little "nicer" more modern if you want so? Looks pretty Windows 98-ish to me
The 90's are all the rage now so maybe the Windows 98 look will make your program popular with the kids.
Sorry I'm late, but yes; PSG allows you to create your own "themes", and use custom designed GUI elements through global method calls that use parameters allowing the user to mess with basically any element of their window, if one wishes.
how to enter current time by pressing button..pls someone help....
Yeah would be great if they got a ui designer on board to polish up the default interface a bit.
It is better to write simpler than native Tkinter
why learn another syntax to achieve the same goal. we need graphics auto converted to tkinter code like Pygubu does.
Piesimple gooey
CAN IT FUNCTION FOR MOBILE DEVELOPMENT
No. You have Kiwi for that.
kivy
@dev null kivy*
I've been in IT support for 20+ years at a local college. We deploy hundreds of bit of software across the four campus buildings, thousands of installs over the years. I've never had to deploy anything to the desktop written in Perl, Python, Ruby or any other interpreted language. Why not take the time to learn a GUI interface for something someone other than yourself is actually going to use? Even Java, if you must.
Your recommendation is to start writing More Java programs?? In 2022?
A short life savings tip for everyone:
Never use python for a GUI application it sucks
That's true but sometimes its needed ( I mean you really need Python ), like for computer vision and plotting graphs ( as in the video ). I agree and do not agree with you at the same time.
@@pumpkin162 i know about C++ and opencv relation but ... you understood my point. I also do not recommend python for GUIs.
@@pumpkin162 cool profile pic by the way
@Goman 001 Thanks mate and I like your too cz I am a Spidey Fan Boi
It sucks? Ok. Very helpful. Not.
Top 5 ways to make income from home using Python?
1.?
2.?
3.?
4.?
5.?
Any ideas? 🤷♂️
Nope. Need a RAD IDE with a form designer like Visual Studio for NET or Delphi, otherwise it's just a lot of boilerplate typing instead of getting on and programming your application logic.
I want to teach my self programming but I find anything but Rapid Application Development unattractive there needs to be more IDES with a visual UI designer built in. I don't find it attractive to type in the design of a UI.
I mean you understand that Python probably isn't the best for this regardless. Python's made for data science and such, other languages and IDES have options like this
'gooey' 'ping'
If I use empty "except" statement than my teamlead will fire me and I never find a job.
In that case just run "except Exception" whats the worst that could happen lol
@@Meaty33 lol)))
The tutorial is not about exception handling, and if you were expecting that with this video, THEN you deserve to be fired.
We need drag and drop like PyQT not something similar to other Python GUI Lib
32 years old and still, Python does not have a GUI builder like Visual BASIC. Instead you are expected to write code to create GUI elements. Ridiculous.
👍👍👍
Python for desktop is a joke, who in their right mind is going to write the GUI like 20 years ago?
What is used nowadays? I'm interested
@@GeneralPet Payment tools will always be better, since they have more capabilities, even some free like VS Community but using paid components like Telerik ... other tools: WinDev, WebDev, WinDev Mobile, B4a, B4i, Servoy, Lianja , PHPRunner, ASPRunner, ScriptCase, I do not work with OpenSource since my developments I cannot afford to be writing hundreds of lines to develop a simple CRUD ..
@@leviatanMX agree on the paid tools issue - I often say: "I can't afford free". But, what do you think of using web client / server like flask on Python locally serving up the GUI. Or other python web framework if supported by a real IDE like PyCharm Pro ? My app is embedded systems, accessing hardware; think Raspberry Pi Python GUI app - any thoughts on this for a modern approach ?
Pykidgui >> all
🥧 🤪 😏
its GUI not goooooooooyi !!!
you didn't need to say PySimpleGUI EVERYTIME!! brain hurt.
🤣🤣🤣
5 minutes of publicity for 15 minutes of videos ... Unacceptable
pass to Premium. No publicity, wow!
@@ezragsit you work for RUclips?
Ahhhhhhhhh!! Stop saying gooey!!!!
No it is....
Why is it so fugly?