Create an advanced GUI app with PySimpleGUI (Full Tutorial)

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 183

  • @CodingIsFun
    @CodingIsFun  2 роки тому +15

    *What kind of programs are you planning to build with the PySimpleGUI library?* 🤓

    • @matriks_yang_bikin_bingung
      @matriks_yang_bikin_bingung 2 роки тому +1

      I want to build a desktop app for integration machine learning model sentiment analysis

    • @ipelezikis
      @ipelezikis 2 роки тому +1

      Didn't know about the sg.UserSettings. I would implement the parsing manually.. Nice to know now :-)

    • @pieterjdw
      @pieterjdw 2 роки тому +1

      I have a simple programme selecting two date inputs with some condition checks and would like to gui this

    • @stenvrolijk9177
      @stenvrolijk9177 2 роки тому +1

      im building a stock backtrade program

    • @rzipper1716
      @rzipper1716 2 роки тому +1

      Intro genetic algorithm.

  • @cuongt42184
    @cuongt42184 2 роки тому +21

    I want to say this is probably one of the best GUI tutorials I've experienced. I have struggled for years trying to build customer GUI in python and I just wanted to say thank you for making this easy to understand and purposeful. SUBSCRIBED!

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      Ah, you're making me blush! Thanks for the kind comment and happy to hear that you found this video helpful. Good luck with your GUI project, and happy coding! 👍

  • @animatorslife9733
    @animatorslife9733 9 місяців тому +1

    Wanted a beginner gui python library because tkinter felt old looking. Safe to say, landed in the right place!

    • @CodingIsFun
      @CodingIsFun  9 місяців тому +1

      Happy to hear that you found the video and liked it. Happy coding! Cheers, Sven ✌️

  • @2JSinc
    @2JSinc Рік тому

    Having 0 knowledge about python and someone who wants to learn and make a custom GUI app for my specific needs, this gives me high hope that it is possible for me to achieve and make one, thank you for this...

    • @CodingIsFun
      @CodingIsFun  Рік тому +1

      Glad I could help! Good luck with your project and happy coding! :)

  • @PinkPixelRabbit
    @PinkPixelRabbit Рік тому +2

    This channel is crazy... your tutorials and ideas are even more valuable than those paid courses on Udemy! Thanks for making these tutorials Sven 😇

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Happy to hear that! Thanks a lot for your comments and support! 🤩

  • @Kakzz31
    @Kakzz31 2 роки тому +1

    A useful and competent explanation, so I tried it and it turned out that everything works fine. Special thanks to the author for such useful content.

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Glad you liked it. Thanks for watching and taking the time to leave a comment!

  • @arielspalter7425
    @arielspalter7425 2 роки тому +3

    Excellent tutorial! One of the best I’ve seen on PySimpleGui. Perfect pace, topic coverage etc. subscribed!

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Awesome, thank you and welcome aboard! 👍

  • @Евгений-ф8н2э
    @Евгений-ф8н2э Рік тому +1

    You are one of the best code explainers on UA-cam! Thanks a lot!

    • @CodingIsFun
      @CodingIsFun  Рік тому +1

      It's very kind of you to say so, thank you! 😀

  • @johnkennicoleprado5797
    @johnkennicoleprado5797 2 роки тому +1

    This is the best free software Ive seen. Respect.

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks for the kind words! I am glad you enjoyed it.

  • @florianroeseler2404
    @florianroeseler2404 2 роки тому +1

    Very in-depth, but concise at the same time!

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Glad it was helpful! Thanks for watching, Florian!

  • @erolsavas19
    @erolsavas19 Рік тому

    I follow the examples on your channel with pleasure. The examples you give are great. Thanks.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Glad you like them! Thanks for watching and taking the time to leave a comment. I appreciate it! :)

  • @vajoh3
    @vajoh3 2 роки тому +2

    Nice. I would love to see more videos of PySimpleGUI

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks for watching and well noted!

  • @myasaee
    @myasaee 2 роки тому +1

    Fantastic video. Easy to follow, fast and clear. Love the style.

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Glad you liked it. Thanks for watching and taking the time to leave a comment!

  • @skaruts
    @skaruts 2 роки тому

    I love that they have a theme called *_SystemDefault,_* and then another one called *_SystemDefault1,..._* and then one called *_SystemDefaultForReal._*
    :)

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Nice catch, I haven't noticed it 😁

  • @YammyBoh7
    @YammyBoh7 2 роки тому +1

    This was great timing. There was one thing in particular I couldn't figure out how to do and you helped me. Thank you :D

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

  • @dudeCoding
    @dudeCoding 5 місяців тому

    at 12:46 when you create a config file, it might save as a config.ini.txt file. if it does, open the file, go to save as, "config.ini". this will convert the text document to an ini file! Took me a while to figure this out.

    • @CodingIsFun
      @CodingIsFun  5 місяців тому

      Glad you figured it out. Thanks for watching! Cheers, Sven ✌️

  • @CRITCS1990
    @CRITCS1990 Рік тому

    As I had no even bit of knowledge on python and I found your videos and drives me to learn coding and Yes you are right it’s fun, thanks for introducing me to python and your explanations are very clear and understanding. I saw your video of making gui for data entry. So ad a chef I wanted to make my own program to when I entered the data and it will go and save to a my own excel format. Thanks to you I was successful 90% . ❤ now I wrote the code and everything works, I just wanted to know how I can make it data to go and store in my format as a example Recipe name - will go to the head line and when I feed information to ingredients button it will save in specific column I want it to be. Could you please help me with that ? And keep up the good work. And in my opinion the by watching most other people you make things very clear

    • @CodingIsFun
      @CodingIsFun  Рік тому +1

      Thanks so much for watching the video and leaving a comment! Your request is definitely noted. However, I get a ton of requests for custom solutions and, as much as I'd love to help everyone out, I just don't have the time in my schedule to develop and test all of them. I hope you can understand. Happy Coding!

    • @CRITCS1990
      @CRITCS1990 Рік тому

      Of course no doubt you have lot of requests. It’s all good, good things take time .

  • @chrisalfred5567
    @chrisalfred5567 Рік тому +1

    You are a brilliant presenter.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thanks for the kind words and watching the video! :)

  • @chrisalfred5567
    @chrisalfred5567 Рік тому

    Using your tutorial as a basis of an application to automate conversion of exported bank statements into tax return data.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Sounds existing! Good luck with your project! Happy Coding 👍

  • @adeelmunir6019
    @adeelmunir6019 Рік тому +1

    Thanks for such a wonderful and comprehensive tutorial yet very precise. A great contribution for the community , Thanks again

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thanks for the positive feedback! Appreciate you taking the time to leave a comment. 👍

  • @eduedu726
    @eduedu726 2 роки тому +1

    your videos are inspirational, much waited week by week. thanks for your dedication !

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Happy to hear that you enjoyed this one too! Thanks for the comments and support!

  • @CRITCS1990
    @CRITCS1990 Рік тому

    Will definitely try using this to modify my own what I made by seeing your videos . ❤

  • @Sol_Naif
    @Sol_Naif Рік тому

    Thank you so much for your excellent and unique explanation. Thank you from the bottom of my heart.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Happy to hear that you liked the tutorial! 🤩

  • @joedulis
    @joedulis Рік тому

    Thank you so much for your video! Your tutorial is so easy to follow, thanks!

    • @CodingIsFun
      @CodingIsFun  Рік тому +1

      Glad you liked the video. Thank you very much for watching and being a member of this channel for over one year now. I truly appreciate your support! 🙏

  • @troun
    @troun Рік тому +1

    Thanks for this video,
    I have a question, What font are you using on the code editor.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thanks for watching. I think it is "Menlo" in Atom

  • @ramchillarege1658
    @ramchillarege1658 11 місяців тому

    Nice demo. Thanks

    • @CodingIsFun
      @CodingIsFun  11 місяців тому

      Glad to hear you liked it! Thank you for commenting and watching. 👍

  • @13antonispao
    @13antonispao 2 роки тому +2

    Thank you for another amazing video! I am quite new to Python and your channel (only watched a few videos so far), and your videos make it all look really exciting! I'm a big sucker for practical applications when it comes to coding :)
    One thing that I can think of in terms of foolproofing: If the config file gets somehow deleted, I assume the app will crash on startup (maybe? I am new as I said), so maybe it is possible to check in the code if the config file exists, and if it doesn't proceed to create one with some default values before running anything else.
    I wonder how tough this will be to implement, I might actually try to do this myself in a fork in the future.
    PS: Love your accent!

    • @CodingIsFun
      @CodingIsFun  2 роки тому +3

      *I am glad to hear you are enjoying them; thanks for watching and for the comment!*
      You have a very valid point there. The application will crash if the settings file does not exist. You could hard code any default settings in the python file to prevent this. Before loading the settings, you could check whether the settings file exists. If it does not exist, you could create a new file and dump the default settings there.
      Here is a complete example for you: github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_Settings_Save_Load.py
      Take a look at line 27.
      I hope it helps, and also, thank you very much for the coffee donation. I appreciate it! 🙏

    • @13antonispao
      @13antonispao 2 роки тому

      @@CodingIsFun Thanks for the tip, I'll be sure to take a look!

  • @rzipper1716
    @rzipper1716 2 роки тому +1

    Great Job ... Thank you. That was very helpful !

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Glad it was helpful! Thank you for watching the video and for your comment! 👍

  • @vladimirkostov8182
    @vladimirkostov8182 10 місяців тому

    Hello, your videos about PySimpleGUI are awesome! I would like to ask you if you know, is it possible to insert invoice template made in excel in pysimplegui app and for example when you press a button named " Preview of your invoice " to show popup window with the template that have been made in excel? Or something like that? Thanks in advance!

    • @CodingIsFun
      @CodingIsFun  10 місяців тому

      Thanks so much for watching the video and leaving a comment! Your request is definitely noted. However, I get a ton of requests for custom solutions and, as much as I'd love to help everyone out, I just don't have the time in my schedule to develop and test all of them. I hope you can understand. Happy Coding!

  • @Rubbernecker
    @Rubbernecker Рік тому

    Excellent video!!!

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thanks for the positive feedback! Appreciate you taking the time to leave a comment.

  • @maxb1154
    @maxb1154 2 роки тому +1

    This was so helpful!! Thank you

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Glad it was helpful! Thanks for watching! :)

  • @hodifa_almosa
    @hodifa_almosa 9 місяців тому +1

    ❤❤❤

  • @juancharlie777
    @juancharlie777 8 місяців тому

    Excellente! I just subscribed.

    • @CodingIsFun
      @CodingIsFun  7 місяців тому

      Glad you liked the video and welcome aboard! 🥳🎉 Cheers, Sven ✌️

  • @dudeCoding
    @dudeCoding 5 місяців тому

    Great tutorial. How large was the .exe file in the end? mine is 38,297 kb. Thank you!

    • @CodingIsFun
      @CodingIsFun  5 місяців тому

      Thanks for watching. I don’t remember the exact file size of my executable, but it was definitely over 10MB. The “issue” with compiling is that all the packages required to run your GUI need to be included in the executable. To ensure that you compile only the necessary packages for your application, it is recommended to create a virtual environment for your project, as shown in the video. So, turning a Python file into an executable is possible, but it comes with the downside of a potentially large final file size (even for a relatively 'simple' GUI) Cheers, Sven ✌️

  • @walidmat8972
    @walidmat8972 2 роки тому +1

    Amaaaaaaazinnnnnng video , very very helpfull thanks a lot you saved me a lot of time brother

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

  • @warkeyash007
    @warkeyash007 Рік тому

    Hey,this video helps me a lot. I also combined it using the simple user form to collect information. I just want to understand that whenever I am trying to print those input values in excel, file path is also getting embedded into it. Can you please help here to get specific “key” values in pysimplegui ?

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thank you very much for watching the video and your comment. Your requirements are well noted. Yet, I receive many requests for creating individual solutions. As much as I want to help, I simply do not find the time in my daily schedule to develop & test all the different requests. I hope you can understand. Thank you!

  • @ediahmadfauziserbhaneka9946
    @ediahmadfauziserbhaneka9946 2 роки тому

    Thank you so much bro. Sending virtual hugs. Worked like a charm ;-)

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      An absolute pleasure, very happy to hear that you found it useful!

  • @iDea16388-c
    @iDea16388-c 2 роки тому

    I hope you release a new video as my suggestion soon. Thank you I am from Cambodia

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      I will try my best, but I cannot make any promises. Greetings to Cambodia.

  • @tagliarini
    @tagliarini Рік тому

    Amazing!

  • @normag6769
    @normag6769 7 місяців тому

    Sven, I quick question: for this example, are you using pysimplegui version 5 or 4?

    • @CodingIsFun
      @CodingIsFun  7 місяців тому

      Thanks for watching. I've used PySimpleGUI v4. Cheers, Sven ✌️

  • @tobiewaldeck7105
    @tobiewaldeck7105 2 роки тому +1

    Thank you for these new possibilities for me. I was wondering if you could point me in the right direction. I have two dictionaries where the field names are different. I would like the user to be able to match one field to another so that dict1[key] = dict2[newkey]. In the original the headers of the csv file needs to manually changed to match the other file. It just needs to be some event, lists or popup where I can match the field names.

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thank you for watching the video and for your question. Unfortunately, I do not know how to implement that right off the bat. I would also need to search the internet for a solution. Sorry that I cannot help!

    • @tobiewaldeck7105
      @tobiewaldeck7105 2 роки тому

      @@CodingIsFun Thank you for your response. What I would have liked is some table structure with direct matching with clicking or selecting (Text1 = Client_Name), but the only thing I could come up with is a popup with two listboxes where one is just for show and the other is where I have to pick the right fields then do this:
      count = -1
      for k, v in dict1.items():
      count = count +1
      try:
      dict2[selectedkeys[count]] = v
      except:
      pass
      But with this method the selecting must be in the right order and amount as the other.

  • @karandave7967
    @karandave7967 2 роки тому +2

    Can you make a video on ms SQL connection with python with GUI

    • @CodingIsFun
      @CodingIsFun  2 роки тому +2

      Thank you for watching the video & your suggestion.

  • @shinrafahell
    @shinrafahell 2 роки тому

    Kudos for you!👍

  • @JoshonkeysMusic
    @JoshonkeysMusic 2 роки тому

    hanks lot Sir.. You helping us..

  • @gtstudi0-o7o
    @gtstudi0-o7o Рік тому

    hello do you have a turtorial with merging 2 excel data using PySimpleGUI?

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Hey, thanks for watching! If you wanna check out how to merge Excel data using pandas and xlwings, I've got a separate video for you right here: ua-cam.com/video/AHS925L8JVk/v-deo.html
      After you've got your script working, you can totally build a GUI around your app with PySimpleGUI. Happy coding!

  • @arunasrancevas6095
    @arunasrancevas6095 2 роки тому

    Any lesser known python gui libraries? Also do you know any alternatives matploblit? Anything to learn and predict crypto prices for school project?

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      A quick google search will show you many different Python libraries. I just like the simplicity of PySimpleGUI.
      In regards to plotting libraries, I prefer 'Plotly'. I am not really an expert on predicting crypto prices, sorry!

  • @bharathreddy7511
    @bharathreddy7511 2 роки тому +1

    hi I'm currently working on automated test data generator based on user inputs to the fields.
    And these inputs are provided to the user using sg.combo(list of options to select from). What I'm wondering is ,is there any way that we can provide a popup to the user when he selects an option from list of drop-down options to get more inputs from the user. For example I have options like date,name,phone number etc in the drop-down which is created using sg.Combo. Now when the user selects date from the list can we provide a popup(immediately after selecting date option)so that the user can provide different dates (starting and ending date). Similarly if he selects phone number can we provide a popup so that we can ask him what kind of phone number he is looking like any particular format (xxx-xxx-xxxx or number with country code) and so on. I have searching for this for past three days. Any suggestions from you might help me finish the major part of my problem. Thanks in advance.

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thank you for watching the video. Your questions are great, but finding the time to answer them is difficult. Kindly understand that I receive many requests for individual solutions or modifications. That said, you might want to join our Discord server (pythonandvba.com/discord) and post your question there. Thanks for your understanding. Happy Coding!

  • @koosschutter1675
    @koosschutter1675 8 місяців тому

    pysimplegui will now be moving to a subscription model if you can believe that. Do you think that the older version 4, if installable, could still be used without problem or interference?

    • @CodingIsFun
      @CodingIsFun  8 місяців тому

      Oh wow, I didn't know that. Thanks for pointing it out. I've just checked the GitHub and PySimpleGUI page. I guess that after its sunset in Q2 2024, it will continue to work but won't be further developed. This could mean it may not be compatible with newer Python versions, and there will be no bug fixes, etc.
      However, if you're using your GUI in a non-commercial setting (as a hobbyist), PySimpleGUI 5 will be available free of charge and is fully backward compatible. Therefore, upgrading to the latest version might be a good move.

    • @koosschutter1675
      @koosschutter1675 8 місяців тому

      @@CodingIsFun I'm ok with using the version of everything that I currently have, but even though I'm not a good coder, I'm developing a useful app I'm rather proud of, and so I had to ask chatgpt about installing specific versions of packages and virtual environments because I don't want to upgrade.

  • @mudassarhayat4616
    @mudassarhayat4616 2 роки тому

    Brilliant

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

  • @ArnauViaM
    @ArnauViaM 2 роки тому

    Thanks!

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      A pleasure! Thanks for watching! :)

  • @leonardolozzi
    @leonardolozzi 7 місяців тому

    Can i put an image instead text for substitue text keywords in Word?

    • @CodingIsFun
      @CodingIsFun  7 місяців тому

      Yes, that is possible. Have a look here: ua-cam.com/video/T3meVMaV8AA/v-deo.htmlsi=_vPhVryYXpHdvHDk
      Happy Coding! Cheers, Sven ✌️

  • @adnanberki3869
    @adnanberki3869 Рік тому

    to the point

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thank you for your comment, Adnan Berki! I'm glad you found the content to be concise and to the point. 👍

  • @tanmaygoyal8150
    @tanmaygoyal8150 Рік тому

    Hey. This was super helpful. But I am facing one issue here. I run the final script, click on settings -> save current settings -> ok (in the popup) and instead of closing only the settings window, this closes the main window as well. However if I do not include the popup feature in the settings window, and then click on save current settings button, then it works as expected and only closes the settings window.
    Realised that it does not actually close the main window but the main window goes into background processes. This is very undesirable. PLEASE HEL.P

    • @CodingIsFun
      @CodingIsFun  Рік тому +1

      Thanks for watching. Can you please clone the repo and try again? Thanks!

    • @tanmaygoyal8150
      @tanmaygoyal8150 Рік тому

      @@CodingIsFun Thanks. It just turned out to be a memory issue on my PC itself. Its resolved now. However I notice that the size of .exe file is 36MB, and the startup time for the app is significant (7 seconds). Is there any way to reduce the startup time and/or reduce the size of .exe file?

    • @tanmaygoyal8150
      @tanmaygoyal8150 Рік тому

      Actually I am tasked with making a light and simple GUI as a front-end for some already heavy backend code. This is part of a research project with an industry partner. Can you suggest some other options for doing this?

  • @AhmedRabeh18
    @AhmedRabeh18 2 роки тому

    this is good thanks

  • @MDTVclips
    @MDTVclips 2 роки тому

    i like the content thanks a lot ,
    what's the function to convert to .txt please !!

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks! What have you tried so far?

  • @iDea16388-c
    @iDea16388-c 2 роки тому

    Thank you

  • @ojajuniemolamarvellous3044
    @ojajuniemolamarvellous3044 2 роки тому +1

    Thank you for this amazing video! please help me, after running the code, I received this error message "Traceback (most recent call last):
    File "C:\Users\Ojajumi Marvellous\PycharmProjects\SETTINGS\main.py", line 105, in
    font_size = int(settings["GUI"]["font_size"])
    TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType', please I am new in the system.

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks for watching. Please try to clone the entire repo from GitHub and run your code again (I assume your missing the settings file). Also, let me know if you have modified the code. Thanks!

    • @Alex-zr7wr
      @Alex-zr7wr 2 роки тому

      I can help with this problem.
      You may be saving config.ini as a text file when saving it in Notepad and so it won't load correctly. Go into your folder and check if the type says "Text" or "Configuration settings." If it is text, then open a new instance of notepad and copy/paste the settings over. When using "save as," make sure the field "save as type:" is "All Files." Check the type again. Now it should be a configuration settings file and the program should work.

  • @PinkPixelRabbit
    @PinkPixelRabbit Рік тому

    It seems that psgcompiler doesn't work on MacOS... Anyone got the same issue? How can I convert it to a .app or .dmg?

  • @luiscala1669
    @luiscala1669 2 роки тому

    thx work

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      You're very welcome! Thank you for watching and for the comment!

  • @MrSanfrinsisco
    @MrSanfrinsisco 2 роки тому

    I'm only at 9:30 right now so maybe I'll see it happen but I'm noticing you don't use elif statements, is that just a preference? Is there a reason for this?

    • @CodingIsFun
      @CodingIsFun  2 роки тому +1

      Thanks for watching. Personal preference to avoid another level of indentation. Feel free to use elif

    • @MrSanfrinsisco
      @MrSanfrinsisco 2 роки тому

      ​ @Coding Is Fun sweet, thank you!

  • @KanhaiyaLal-ze3ri
    @KanhaiyaLal-ze3ri Рік тому

    Hi CodingIsFun, How to consolidate excel file from sharepoint using python.

    • @CodingIsFun
      @CodingIsFun  Рік тому

      While I'm happy to try and help, it sounds like your question is beyond the scope of the tutorial and would require a custom solution. Unfortunately, I don't have the time to code something specific for every viewer. If you'd like some support and guidance from a community of like-minded people, you might want to check out my Discord server at pythonandvba.com/discord. Good luck with your project. Happy Coding!

  • @gaming-with-ali
    @gaming-with-ali Рік тому

    im having an issue with the Settings function
    on "SETTINGS_PATH = Path.cwd()"
    im getting an error: Unresolved reference 'Path'
    Why?

  • @tobiewaldeck7105
    @tobiewaldeck7105 6 місяців тому

    Hi. Why is my pyinstaller applications being flagged by antivirus software. I am switching to a new UI and I want to sell my applications, but I don't know how long that would last if my software get flagged by antivirus.

    • @CodingIsFun
      @CodingIsFun  6 місяців тому

      Thank you for watching. Unfortunately, this issue occurs quite often. You can see more details here: stackoverflow.com/questions/43777106/program-made-with-pyinstaller-now-seen-as-a-trojan-horse-by-avg

    • @tobiewaldeck7105
      @tobiewaldeck7105 6 місяців тому

      @@CodingIsFun Thank you for the response. I have seen about compiling the bootloader but that would take many gigs to download and is complicated. Just some apps get flagged and others don't. Mystery! Why don't pyinstaller fix it.

  • @arunasrancevas6095
    @arunasrancevas6095 2 роки тому

    What about streamlit? Your video is third suggestion?

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      I like to tinker around with those libraries in my leisure time. And the official streamlit documentation is also a great resource with fantastic examples for each element: docs.streamlit.io/

  • @alterchannel2501
    @alterchannel2501 2 роки тому

    If I write the pip install code, it returns an error, why? I'm from Italy, but i don't think the operation languagr matters in the prompt cmd

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Thanks for watching the watching and your question. It is hard to tell from a distance what is causing the error. Try searching for the text of your error message on google/StackOverflow.

  • @arunasrancevas6095
    @arunasrancevas6095 2 роки тому

    How do you even learn such niche libraries?

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      The creator of the PySImpleGUI library, Mike, created an excellent documentation and even provided example applications which you can run the browser: pysimplegui.trinket.io/demo-programs#/demo-programs/menus
      Happy Coding!

  • @JyskMaker
    @JyskMaker Рік тому

    Hi love this guide and used it to start learning Python. 🙂
    Can some body help me here..
    i have a test.ini file with this in it.
    [TEST]
    1 = 0,1,2,3
    2 = 3,2,1
    4 = A,B,C
    5 = A,1,2,B, 3,2
    AL = Temp, Man
    Is there a way to read the ini file like READ["TEST"] and get the 1,2,4,5, AL as a result?
    PS trying to learn to program python.

    • @CodingIsFun
      @CodingIsFun  Рік тому +1

      Thanks for watching. Here you are:
      import configparser
      # Create a configparser object
      config = configparser.ConfigParser()
      # Read the ini file
      config.read('test.ini')
      # Get the keys from the 'TEST' section
      keys = config.options('TEST')
      # Print the keys
      print(keys)
      If you like the solution, consider supporting me here: pythonandvba.com/coffee-donation
      Thanks!

    • @JyskMaker
      @JyskMaker Рік тому

      @@CodingIsFun Its looks fine, but it makes all entryes from the ini file into lower letters 😞

    • @JyskMaker
      @JyskMaker Рік тому

      @@CodingIsFun Just used keys = [tekst.title() for tekst in keys] 🙂

  • @satyapatchigolla8300
    @satyapatchigolla8300 Рік тому

    What is meant by sg in first line

    • @CodingIsFun
      @CodingIsFun  Рік тому

      In Python, when you import a library, you can choose to give it a different name that's easier to use in your code. In this case, the library PySimpleGUI is assigned the name "sg".
      This allows you to call functions from PySimpleGUI by using the shortened name "sg" instead of having to type out the full name "PySimpleGUI" each time. For example, instead of writing "PySimpleGUI.Window()", you can write "sg.Window()" to create a new window object.
      This can make your code more concise and easier to read.

  • @Pixel_Recap
    @Pixel_Recap 2 роки тому

    How we print out output of a function ?

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      Not entirely sure what you are trying to achieve, but you could use:
      sg.easy_print("your message goes here")

    • @Pixel_Recap
      @Pixel_Recap 2 роки тому

      @@CodingIsFun can you make a video about this problem?

  • @KanhaiyaLal-ze3ri
    @KanhaiyaLal-ze3ri Рік тому

    can you show gui file location.

  • @nutchateangkool209
    @nutchateangkool209 Рік тому

    Is PySimpleGUI support PDF File?

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thanks for watching. What exactly do you mean? PySimpleGUI is "just" a tool to create the GUI for your Python file.

    • @nutchateangkool209
      @nutchateangkool209 Рік тому

      @@CodingIsFun I have main code(python) about detect mistake document on PDF file and I want to show PDF file on gui. How can I do it? Would you recommend something? Can I Use PySimpleGUI?🥲

  • @SilentReidy
    @SilentReidy 2 роки тому

    Has anyone has issues with the settings file not working with the font size and family, keep receiving an error

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      The actual error message would be helpful, I guess

    • @SilentReidy
      @SilentReidy 2 роки тому

      @@CodingIsFun TypeError : int() argument must be a string, a btyes-like object or a real number not 'NoneType'

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      @@SilentReidy 1. Do you have created the settings files?
      2. Ensure not to have any spelling mistakes
      3. If nothing works, please clone the GitHub repo (link in the description) and run the code.

  • @AhmedRabeh18
    @AhmedRabeh18 2 роки тому

    The app is not working : PS C:\Users\pc> python -u "c:\Users\pc\Desktop\Data_Entry\main.py"
    Traceback (most recent call last):
    File "c:\Users\pc\Desktop\Data_Entry\main.py", line 105, in
    font_size = int(settings["GUI"]["font_size"])
    TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

    • @CodingIsFun
      @CodingIsFun  2 роки тому

      The app is working, otherwise I would have not been able to record this video 😅 Please check if you entered a number for the font size in the settings file.

  • @MrPooser
    @MrPooser 2 роки тому

    100% deutsch :D

  • @DeTudoTutoriais10
    @DeTudoTutoriais10 2 роки тому

    got an error, do you know why? : File "main.py", line 100, in
    settings = sg.UserSettings(
    TypeError: __init__() got an unexpected keyword argument 'use_config_file'

    • @CodingIsFun
      @CodingIsFun  2 роки тому +2

      Please ensure to use the latest PySimpleGUI version by typing 'pip install pysimplegui --upgrade' and try again. Thanks!

    • @DeTudoTutoriais10
      @DeTudoTutoriais10 2 роки тому +1

      @@CodingIsFun It worked. Thanks

  • @doughughes257
    @doughughes257 Рік тому

    Thanks!

    • @CodingIsFun
      @CodingIsFun  Рік тому

      Thank you very much for your support. 👍 I greatly appreciate it! 🙏