Python GUI Development With PySimpleGUI

  Рет қаралды 994,464

Real Python

Real Python

Күн бұрын

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...

Пікірлер: 225
@simmonslucas
@simmonslucas 2 жыл бұрын
This is a great library. Just finished a GUI based interoperability project for work with this library simply but powerful.
@e630fnr
@e630fnr 3 жыл бұрын
PySimpleGUI...for the 567 time...sure after this video I talk in my sleep "PySimpleGUI"!
@neilthomas5758
@neilthomas5758 3 жыл бұрын
Damn you!!!!! now that's all I can hear. lol.
@shahidmahmood7252
@shahidmahmood7252 2 жыл бұрын
🤣
@timon2167
@timon2167 2 жыл бұрын
I guess it was PySimpleGUI 😂
@leonardodavinci4259
@leonardodavinci4259 2 жыл бұрын
Forreal
@MrBlazer3585
@MrBlazer3585 Жыл бұрын
What is it?....Monorail!.... Monorail! I mean PYSimpleGUI
@christophernuzzi2780
@christophernuzzi2780 2 жыл бұрын
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.
@Flameandfireclan
@Flameandfireclan 2 жыл бұрын
Thanks, this video made sure that I will never forget the name of this package next time I need to pip install.
@alira7296
@alira7296 2 жыл бұрын
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 ;)
@training7574
@training7574 Жыл бұрын
Very concise with lots of useful examples, step by step presented. Thanks.
@yantheman1398
@yantheman1398 3 жыл бұрын
Finally a clean simple solution for small projects and stuff, thank you so much!!!
@KrastyoKrastev
@KrastyoKrastev 3 жыл бұрын
This was very helpful! Thank you!
@UTJK.
@UTJK. 2 жыл бұрын
"Nice interface" is really a generous compliment, but... it seems to work well.
@isidrodeleon673
@isidrodeleon673 2 жыл бұрын
Like the girls, the easyest looks more beauty 😂
@MrRahul15937
@MrRahul15937 3 жыл бұрын
You made it look so easy.
@Nippon0taku
@Nippon0taku 2 жыл бұрын
The tutrorial is excellent!
@SmashPhysical
@SmashPhysical 3 жыл бұрын
It works awesome, very easy to use!
@darcipeeps
@darcipeeps 2 жыл бұрын
I learned a whole lot in just 15 minutes
@tylercoombs1
@tylercoombs1 2 жыл бұрын
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
@core36
@core36 2 жыл бұрын
what limitations did you encounter?
@mrmartinwatson1
@mrmartinwatson1 2 жыл бұрын
You might like pyqt designer
@tylercoombs1
@tylercoombs1 2 жыл бұрын
@@mrmartinwatson1 Thanks for the tip Martin. Qt designer does look like a good option!
@opus_X
@opus_X 2 жыл бұрын
@@tylercoombs1 I also wonder what the limitations you found were, since I've only ever used tkinter thus far.
@tylercoombs1
@tylercoombs1 2 жыл бұрын
@@opus_X Mainly stylizing, give a window a cleaner look
@Doubleelforbes
@Doubleelforbes 2 жыл бұрын
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).
@TotallyNotAuroras2ndChannel
@TotallyNotAuroras2ndChannel 2 жыл бұрын
Thanks
@vikasbanjare2254
@vikasbanjare2254 3 жыл бұрын
Very helpful video.... Thank you
@merthyr1831
@merthyr1831 2 жыл бұрын
Was so happy to find this package. Used it to automate my timesheets at work to save my brain numbing Jira shit
@PaulMetalhero
@PaulMetalhero 3 жыл бұрын
Nice, thanks!
@brpawankumariyengar4227
@brpawankumariyengar4227 2 жыл бұрын
Great Video …. Thank you very much
@Gabirell
@Gabirell 2 жыл бұрын
Wow, thanks!
@timsmith1426
@timsmith1426 Жыл бұрын
What a great video, ty!
@anthonywoods2550
@anthonywoods2550 Жыл бұрын
Thank you, Good Gui App.
@carlosrangel4500
@carlosrangel4500 2 жыл бұрын
Nice tutorial, thanks :)
@munnaoraonminz6797
@munnaoraonminz6797 2 жыл бұрын
Amazing user interface
@Schaelpy
@Schaelpy 2 жыл бұрын
not sure if amazing is the right word but definitely useful
@fexofenadinaGenerica
@fexofenadinaGenerica Жыл бұрын
They are hideous
@saulwarren9611
@saulwarren9611 Жыл бұрын
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.
@IverGameplays
@IverGameplays 2 жыл бұрын
N O I I C E ! ! 👍🏼👍🏼
@katrykonig2466
@katrykonig2466 2 жыл бұрын
Is there any IDE for UI, like Visual Studio for c#
@joshb4220
@joshb4220 2 жыл бұрын
Is the next video on PySimpleGUI coming soon?
@nasraldeneisa4172
@nasraldeneisa4172 Жыл бұрын
Very nice, thanks
@philtoa334
@philtoa334 3 жыл бұрын
Nice.
@dan.procopio
@dan.procopio 8 ай бұрын
how do i put a transparent word in the text box?
@sinchrotron
@sinchrotron 2 жыл бұрын
Oh cool! A video from 2003 :)
@Axel_Andersen
@Axel_Andersen 2 жыл бұрын
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...
@tonyr0xx
@tonyr0xx 2 жыл бұрын
how to set a background image in layout ?
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
I had a quick look at the docs. Doesn’t seem to use asyncio. Pity.
@Mofakk
@Mofakk Жыл бұрын
in your code you have no with " sg.Column(file_list_column), " but i do it says its not defined
@chowcarrie9522
@chowcarrie9522 2 жыл бұрын
Has no Sciter port, RustDesk uses Sciter, looks beatiful
@drac8854
@drac8854 3 жыл бұрын
It will be great if you can make a video on pywebview If possible flask included 😅 Thanks 🙂
@JohannBaritono
@JohannBaritono 3 жыл бұрын
Would you like some Whiskey with your order too? Lol.
@nasirasadov634
@nasirasadov634 2 жыл бұрын
Challenge: drink a shot every time he says PySimpleGUI
@the_jcbone
@the_jcbone 2 жыл бұрын
If only it would look like more like the respective GUI… especially on macOS, this stands out like a sore thumb.
@hoagy_ytfc
@hoagy_ytfc 2 жыл бұрын
This is why cross-platform gui tools are no good except for quick noddy ad hoc tools.
@beatricerelaxingmeditating1969
@beatricerelaxingmeditating1969 2 жыл бұрын
Help my IMG.viewer did not work on the terminal. It gave me error
@TotallyNotAuroras2ndChannel
@TotallyNotAuroras2ndChannel 2 жыл бұрын
Is there a GUI like visual basic
@brucedavidson646
@brucedavidson646 Жыл бұрын
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?
@sadf1416
@sadf1416 Жыл бұрын
Probably because if you want to profit off of an app, you need to buy a PyQt license which costs over $550 dollars.
@MohAmuza
@MohAmuza Жыл бұрын
how to resize the image?
@adityachoudhary4306
@adityachoudhary4306 2 жыл бұрын
how to enter current time by pressing button..pls someone help....
@AnkurShah_CS
@AnkurShah_CS Жыл бұрын
can this be replaced by 'flet' now?
@ouralternate-history5672
@ouralternate-history5672 2 жыл бұрын
Source for the image viewer. Please.
@ntcov
@ntcov Жыл бұрын
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
@facundosoto7744
@facundosoto7744 2 жыл бұрын
what mockup software you have used? I've been looking for it for a long time...
@glennmeader626
@glennmeader626 2 жыл бұрын
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.
@bobmcbob4399
@bobmcbob4399 2 жыл бұрын
It might be Balsamiq Wireframes
@MohAmuza
@MohAmuza Жыл бұрын
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
@dopy8418
@dopy8418 2 жыл бұрын
So what’s the name of that thing again ?
@MrWorshipMe
@MrWorshipMe 3 жыл бұрын
Using qt with the designer is way simpler, and looks much nicer.
@TheyCallMeHacked
@TheyCallMeHacked 3 жыл бұрын
But due to Qt's license, there are a lot of situations where you wouldn't want to use Qt
@MrWorshipMe
@MrWorshipMe 3 жыл бұрын
@@TheyCallMeHacked LGPL is actually quite permissive... it allowes for both open and closed source distribution.
@NVidea-yz1fg
@NVidea-yz1fg 2 жыл бұрын
@@MrWorshipMe But PyQt is not available under the LGPL, only GPL and commercial.
@MrWorshipMe
@MrWorshipMe 2 жыл бұрын
@@NVidea-yz1fg pyside has the lgpl option.
@Polynuttery
@Polynuttery Жыл бұрын
Kivy is MIT licensed I think and really nicely written.
@jacobmonger7803
@jacobmonger7803 Жыл бұрын
This solved my problems with tkinter thanks heaps
@dragster100
@dragster100 5 ай бұрын
How to make this PysimpleGUI into an App with shortcut?
@alexandruagrapine90
@alexandruagrapine90 2 жыл бұрын
he didn't joke when he said `simple` .... oh man....that theme though
@ANONYMOUS-wr9qu
@ANONYMOUS-wr9qu Жыл бұрын
sadly it wont work for me it just keeps popping up a error for "PySimpleGUI" line 3
@sanaksanandan
@sanaksanandan 2 жыл бұрын
How is this compared to PyQt
@globgagalab832
@globgagalab832 Жыл бұрын
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!
@zdwlees7647
@zdwlees7647 Жыл бұрын
Is it not jee-you-eye?
@kostashow
@kostashow 3 ай бұрын
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 !!
@juanfra1997
@juanfra1997 2 жыл бұрын
Can this be use in a raspberry pi and use the gpio?
@paulo.galvao
@paulo.galvao 2 жыл бұрын
tkinter does, why not...
@rake1087
@rake1087 2 жыл бұрын
Great tutorial but if I hear GUI as gooey one more time I'm going to lose my mind haha
@adityachoudhary4306
@adityachoudhary4306 2 жыл бұрын
how to enter current time by pressing button..pls someone help....
@adityachoudhary4306
@adityachoudhary4306 2 жыл бұрын
.when i add an icon and convert .py to .exe .,,,when I place the .exe on other pc the icon disappears ....can anyone help???
@12345themadguy
@12345themadguy 2 жыл бұрын
Where is the next video?
@ram2706
@ram2706 2 жыл бұрын
✯✯✯✯ *How did you run the code? where did you go to run it?*
@NoamAsulin
@NoamAsulin 2 жыл бұрын
You need a terminal to run it. Luke cmd /Terminal.
@nandkumarpawar7
@nandkumarpawar7 3 жыл бұрын
How can I maximize a window? Can I add a button manually?
@mikapeltokorpi7671
@mikapeltokorpi7671 2 жыл бұрын
Read display size from environmental parameters and go from there? Unless there is window.maximize() method...
@lwwells
@lwwells Жыл бұрын
Dude! Thank you. I hate TKinter so much. I’m rebuilding all my scientific scripts with guis.
@user-ir2fu4cx6p
@user-ir2fu4cx6p 3 жыл бұрын
Great tutorial, but could this library exported with the python application so it works directly on users PC's .
@glennmeader626
@glennmeader626 2 жыл бұрын
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.
@datasciencewithcharaf4206
@datasciencewithcharaf4206 2 жыл бұрын
Why they didin't develop a drag and drop controld, it will be better
@gala_vs
@gala_vs 2 жыл бұрын
What about kivy ?
@paulo.galvao
@paulo.galvao 2 жыл бұрын
it might be better, but it's easy?
@ruxustv8494
@ruxustv8494 Жыл бұрын
why for me the image does not appear what wrong i made? can someone help me
@RatonLaveHeureGaming
@RatonLaveHeureGaming 6 ай бұрын
idk i have the same issue
@Mentox2
@Mentox2 Жыл бұрын
PySimpleGUI syntax feels a little bit less intuitive than Tkinter's, but maybe that's me being too accustomed to tkitner.
@glowiever
@glowiever 3 жыл бұрын
if only it intermingles well with opengl :(
@Aestdyfyfydyyetryuoiyfghcvb
@Aestdyfyfydyyetryuoiyfghcvb Жыл бұрын
RAD wersion please like Delphi
@TotallyNotAuroras2ndChannel
@TotallyNotAuroras2ndChannel 2 жыл бұрын
Nice very nice but nothing has caught up to Visual Basic. I did GUI programing almost 20 years ago
@WisdomShortvids
@WisdomShortvids 2 жыл бұрын
so not drag and drop ? So 80's
@PERSISTENTxMF
@PERSISTENTxMF 2 жыл бұрын
What was the module again? Oh ya.. pysimplegui
@JasimGamer
@JasimGamer 2 жыл бұрын
Tkinter also good
@glennmeader626
@glennmeader626 2 жыл бұрын
Py SimpleGUI is a library that uses TKinter. It makes that simpler to use.
@JasimGamer
@JasimGamer 2 жыл бұрын
@@glennmeader626 yeah i know i used it before its awesome
@granand
@granand 2 жыл бұрын
Can I use SQL or plsql in the backend ?
@glennmeader626
@glennmeader626 2 жыл бұрын
Yes, you can use a Python database access library to use SQL, just like for any other Python program.
@BrendanMetcalfe
@BrendanMetcalfe 2 жыл бұрын
👍👍👍
@L1ghtOn3
@L1ghtOn3 Жыл бұрын
Top 5 ways to make income from home using Python? 1.? 2.? 3.? 4.? 5.? Any ideas? 🤷‍♂️
@yourownrisk
@yourownrisk Жыл бұрын
why learn another syntax to achieve the same goal. we need graphics auto converted to tkinter code like Pygubu does.
@michaeldarnell571
@michaeldarnell571 2 жыл бұрын
Piesimple gooey
@Al-quran-100
@Al-quran-100 3 жыл бұрын
CAN IT FUNCTION FOR MOBILE DEVELOPMENT
@MrWorshipMe
@MrWorshipMe 3 жыл бұрын
No. You have Kiwi for that.
@sarcasm1015
@sarcasm1015 3 жыл бұрын
kivy
@frankhuurman3955
@frankhuurman3955 2 жыл бұрын
@dev null kivy*
@NeroG4ming
@NeroG4ming 2 жыл бұрын
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
@steventhehistorian
@steventhehistorian 2 жыл бұрын
The 90's are all the rage now so maybe the Windows 98 look will make your program popular with the kids.
@dr.schlopp4089
@dr.schlopp4089 2 жыл бұрын
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.
@adityachoudhary4306
@adityachoudhary4306 2 жыл бұрын
how to enter current time by pressing button..pls someone help....
@someghosts
@someghosts Жыл бұрын
Yeah would be great if they got a ui designer on board to polish up the default interface a bit.
@pumpkin162
@pumpkin162 2 жыл бұрын
A short life savings tip for everyone: Never use python for a GUI application it sucks
@manbirjudge8415
@manbirjudge8415 2 жыл бұрын
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.
@manbirjudge8415
@manbirjudge8415 2 жыл бұрын
@@pumpkin162 i know about C++ and opencv relation but ... you understood my point. I also do not recommend python for GUIs.
@manbirjudge8415
@manbirjudge8415 2 жыл бұрын
@@pumpkin162 cool profile pic by the way
@pumpkin162
@pumpkin162 2 жыл бұрын
@Goman 001 Thanks mate and I like your too cz I am a Spidey Fan Boi
@hkn5539
@hkn5539 2 жыл бұрын
It sucks? Ok. Very helpful. Not.
@user-hd2fy7cj3v
@user-hd2fy7cj3v 2 жыл бұрын
It is better to write simpler than native Tkinter
@jasonking1284
@jasonking1284 Жыл бұрын
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.
@onastick2411
@onastick2411 Жыл бұрын
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.
@xl000
@xl000 4 ай бұрын
Your recommendation is to start writing More Java programs?? In 2022?
@rodane6039
@rodane6039 Жыл бұрын
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.
@MrSanfrinsisco
@MrSanfrinsisco Жыл бұрын
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
@jasonking442
@jasonking442 7 ай бұрын
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.
@AnhTuNguyenanhtunguyen
@AnhTuNguyenanhtunguyen 2 жыл бұрын
We need drag and drop like PyQT not something similar to other Python GUI Lib
@contrastretrowave7640
@contrastretrowave7640 3 ай бұрын
'gooey' 'ping'
@xm4dn355x
@xm4dn355x 3 жыл бұрын
If I use empty "except" statement than my teamlead will fire me and I never find a job.
@Meaty33
@Meaty33 2 жыл бұрын
In that case just run "except Exception" whats the worst that could happen lol
@xm4dn355x
@xm4dn355x 2 жыл бұрын
@@Meaty33 lol)))
@Gruuvin1
@Gruuvin1 2 жыл бұрын
The tutorial is not about exception handling, and if you were expecting that with this video, THEN you deserve to be fired.
@leviatanMX
@leviatanMX 2 жыл бұрын
Python for desktop is a joke, who in their right mind is going to write the GUI like 20 years ago?
@GeneralPet
@GeneralPet 2 жыл бұрын
What is used nowadays? I'm interested
@leviatanMX
@leviatanMX 2 жыл бұрын
@@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 ..
@agnichatian
@agnichatian 2 жыл бұрын
@@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 ?
@nuclearheadache
@nuclearheadache 2 жыл бұрын
🥧 🤪 😏
@hsa1727
@hsa1727 2 жыл бұрын
its GUI not goooooooooyi !!!
@4kumetsu
@4kumetsu 2 жыл бұрын
Ahhhhhhhhh!! Stop saying gooey!!!!
@snpbck9997
@snpbck9997 2 жыл бұрын
No it is....
@wi-tinkuo7119
@wi-tinkuo7119 2 жыл бұрын
We Need a GUI application for drag and drop design. Not this, and it's too simple and hard to understand how pyGUI work..... I do not use that.
@RonanTI
@RonanTI 2 жыл бұрын
Pykidgui >> all
@z4961
@z4961 2 жыл бұрын
5 minutes of publicity for 15 minutes of videos ... Unacceptable
@ezragsit
@ezragsit 11 ай бұрын
pass to Premium. No publicity, wow!
@l.mansouri2902
@l.mansouri2902 11 ай бұрын
@@ezragsit you work for KZbin?
@atlantic_love
@atlantic_love Жыл бұрын
PySimpleGUI sucks for anything more than a popup modal window or two.
@Ehren1337
@Ehren1337 Жыл бұрын
whats better then?
@atlantic_love
@atlantic_love Жыл бұрын
@@Ehren1337 There are not a lot of great libraries / frameworks out there, but PySimpleGui is not the best. Google is your friend. You will never do anything serious with this library.
@Ehren1337
@Ehren1337 Жыл бұрын
@@atlantic_love whats the best one that doesnt cost $$?
@atlantic_love
@atlantic_love Жыл бұрын
@@Ehren1337 It isn't about cost. If you want a library that can help you make a popup window and call it an "application", PySimpleGui is that. The others are far more powerful, but will cost you a lot more time.
Which one will take more 😉
00:27
Polar
Рет қаралды 53 МЛН
КАРМАНЧИК 2 СЕЗОН 4 СЕРИЯ
24:05
Inter Production
Рет қаралды 568 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,4 МЛН
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 33 М.
Python Tkinter GUI Design Using ttkbootstrap - Complete Course
3:23:58
freeCodeCamp.org
Рет қаралды 266 М.
Python GUI Development Using PyQt5
22:08
NeuralNine
Рет қаралды 177 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 447 М.
5 Amazing Ways to Automate Your Life using Python
18:40
Internet Made Coder
Рет қаралды 153 М.
Use a Drag & Drop Editor to Make Tkinter Python GUI Applications!
11:16
Which one will take more 😉
00:27
Polar
Рет қаралды 53 МЛН