Your teaching is easy to understand loved the way you explained;-);-)
@PythonSimplified3 жыл бұрын
Thank you so much, I'm glad you liked it! 😃
@LuisSolis3 жыл бұрын
Great tutorial, answering the question I think the detail is in the random function, the random is good but could repeat the same question. I expect that's the answer xD.
@PythonSimplified3 жыл бұрын
YES YES YES! You got it! 😃😃😃 Virtual tap on the shoulder coming right at ya Luis! I'm telepathically sending it to you hahaha 🤣 And now the second part of the riddle - how would you solve it? 😉
@LuisSolis3 жыл бұрын
@@PythonSimplified Great great wooo I'm the winner hahaha Thank you for your telepathically help, haha, Maybe I make a global list of indexes and later create a random list of indexes and after getting these indexes with the random erase the value that's returned.
@PythonSimplified3 жыл бұрын
@@LuisSolis hahaha that's awesome! It's a great way to solve it!! 😃 I would probably do something similar - I'll also track the randomly selected indices with a global list, I would just use a while loop to check if idx is not in list_of_indices before calling preload_data() 😉 If the index already appears in the list - I would keep generating new random numbers inside the loop until we get a brand new index that wasn't used before 🤓 Thanks again for the solution to this riddle Luis! So far you're the only one who figure it out! 🤩
@LuisSolis3 жыл бұрын
@@PythonSimplified Thank you so much Sensei. I will wait for your new tutorial, I'm so new to programming in Python.
@hzokovic2 жыл бұрын
@@PythonSimplified shuffle 50 numbers in the list: parameters["index"].append(random.sample(range(50), 50)) for correct answer just pop value and do not append: parameters["index"].pop() # parameters["index"].append(random.randint(0,49))
@maxbespontoff27713 жыл бұрын
Смотрел бы и смотрел :)
@CurrentElectrical3 жыл бұрын
So looking forward to this. :D
@PythonSimplified3 жыл бұрын
Yey! super glad to hear that, thank you!! 😃
@flioink3 жыл бұрын
Edit: made it by making a function that generated a list of unique integers, then added a call to that function in the start_game function(clearing it beforehand). Then in the is_correct function I give - parameters["index"].append(inset[0]) where "inset" is the list of unique ints. Next line is inset.pop(0) to remove the index we just used so the next becomes first and so on. Seems to do the trick without an issue so far.
@ahsanyousuf90113 жыл бұрын
Kindly, you teach us the OOP in Python....Second thing the way that you make your code simplest and well efficient by your pleasant love, perfect name for the channel.
@PythonSimplified3 жыл бұрын
Thank you so much Ahsan! I'm very happy you're enjoying my tutorials! 😃 I'll be filming a few Python basics videos in the next couple days, and very soon I'll be covering Python classes (which are an integral part of OOP) 😉
@ahsanyousuf90113 жыл бұрын
@@PythonSimplified, It's pleasent to see your reply and now I know your logic, pretty smart enough..
@instantanneomkd59023 жыл бұрын
27:19 it's my favorite moment hehe. excellent tutorial please keep teaching about graphics applications.
@PythonSimplified3 жыл бұрын
Thank you so much Instantanneo Mkd! 😃 I definitely will! keep an eye open for a new poll I'll be posting in the next few days, it's regarding which Python GUI is next to cover on this channel 😉
@oreh3502 жыл бұрын
Thank you! Everything works! I think the issue is we can have some questions repeated and, frankly speaking, I don't know how to solve this problem. I guess we need to create a for loop checking if a new question matches of any previous ones and start the loop again till the problem is gone.
@RazerJones Жыл бұрын
Hey man, that's a feature. I think the bug is the centering of the score inside the green circle.
@BJCP3 жыл бұрын
Love this series! Thanks for making such amazing content! How do you remove the terminal window from the background? Can you also cover turning this into an executable application? It would be fantastic to learn how to take a script and make it a stand alone application (run it withoug python installed).
@PythonSimplified3 жыл бұрын
Thank you Ben! what a timing for your question! I'm about to premiere a .py to .exe video in 30 minutes! 😀 Check it out, I'll be in the live chat to answer questions (even though it would be a very quick chat as the video is only 5 minutes long 😅): kzbin.info/www/bejne/j2Grf2yqmbGogNE
@abteyeb79693 жыл бұрын
VERY GOOD
@PythonSimplified3 жыл бұрын
Thank you! 😊
@al3vs3 жыл бұрын
Love the way how you explain!! Thanks
@temitopemichael27603 жыл бұрын
You are awesome
@AbderrahmaneBenhalima3 жыл бұрын
Great video can you do a video of PyQt vs tkinter ?? and which one is the best for GUI dev
@ZurioSi3 жыл бұрын
An amazing video like always! Thank you from bottom of my heart and see you in the next video.
@PythonSimplified3 жыл бұрын
Thank you so much for the incredible support! 😃😃😃
@iitpmt63993 жыл бұрын
Very simple and understandable
@andreconnelly95793 жыл бұрын
I done all work of Part 2 PyQt5 to create the graphic user interface. You an excellent work design greatness job. That first Part 2 all greatest perfect a lot of work. So the compiler read it done pass perfect. Next one is convert .py to .exe files to hope will working on auto-py-to-exe. Then you can do “Inno Setup Setup” go to website “innosetup-6.2.0.exe” you can install it to read it step by step that is fastest install easy wizard Application. Can give your friends and family to community. Cheer Andre :)
@mehmet20093 жыл бұрын
Another great video. I love your PyQT videos.
@winniepooh25332 жыл бұрын
You look so beautiful while teaching...I love your talking style...And also great video!! I have been watching this series.. I'm your new subscriber and also daily viewer..!😊
@thepaulcraft9573 жыл бұрын
Correct me if I'm false, but I think Json isn't a database technique...
@PythonSimplified3 жыл бұрын
Hi ThePaulCraft 😃 The open source database we'll be using for out Trivia Game is accessed via API key, and stored in a JSON format. I definitely agree that this detailed explanation is much more accurate than the title, but then it defeats the purpose of a title 😜
@thepaulcraft9573 жыл бұрын
Thank you for the answer! I didn't see the video yet. Have a good day! PS: your last video about pyqt helped me so much!
@maptitnoor60893 жыл бұрын
Hello. Tank you
@CHICOS_NOTES3 жыл бұрын
👍🏼👍🏼👍🏼 nice video and nicer presentation.
@digigoliath3 жыл бұрын
Awesome!!! TQVM!!
@PythonSimplified3 жыл бұрын
You're welcome! glad you liked it! 😃
@therealtaylormusic Жыл бұрын
hello, I have a project that I created with localhost and I want to make it an application, how can I do it?
@swedenreality60823 жыл бұрын
As a data scientist, respect for the nomenclature. I don't think noobs watching this appreciate it though. I'm not sure your not loosing them, by using the jargon.
@PythonSimplified3 жыл бұрын
jargon? did I say something fancy in this video? 😀 I don't think I used any words that I haven't used before, maybe just JSON, but it shouldn't be very intimidating...
@swedenreality60823 жыл бұрын
@@PythonSimplified This is not something you learn from the stackoverflow: - expression - refactoring - In the key of - plus operator - function call - dictionary definition - hard coding - parameters of the kay.. - global list of values - instance - function name - callback function - lambda - passing a parameter into a function call - function definition - else clause - global list of parameters - local variable - conversion - conditionals Don't sell yourself short! You need formal education for this, and I think you've got it. Boyz are just glad there is a T and A in the mix. Adjust nomenclature accordingly and its all good. ++
@alfredclausen2593 Жыл бұрын
@@swedenreality6082 And then you want everybody else to sit bored to death while she goes back to basics every few minutes. Please do what everyone else is doing. Go back to Google. Your list will be there if you bother to search. You can also buy a beginner programming book, even a second-hand one. You really have to expect a minimum of programming knowledge before starting on such a project unless you enjoy being frustrated. Personally, I find that she is doing a fantastic job, and she is really nice to look at besides.
@swedenreality6082 Жыл бұрын
@@alfredclausen2593 What "And then..."? Dont project your sht on me.
@joxa61193 жыл бұрын
Can I know why I got this error: ?????????? Traceback (most recent call last): File "C:\Users\User\ASELF_PROJECT\QTPY_PROJECT\qtt.py", line 23, in frame2() File "C:\Users\User\ASELF_PROJECT\QTPY_PROJECT\function.py", line 176, in frame2 question = QLabel(parameters["question"][-1]) IndexError: list index out of range
@massabalobedinade38693 жыл бұрын
merci pour votre enseignement
@parsound83683 жыл бұрын
Thanks for the video! I wonder how you would compare this to Kivy Applications? We use Kivy for fast python GUI's.
@keithbaker58942 жыл бұрын
Outstanding, Thank you very much. I would love to see this tutorial built with Kivy if that is possible?
@RobertPorterNZ3 жыл бұрын
Hey not specifically about this video but noticed the curved screen .. would you recommend that for programming... currently I have 3 screens and really interested in how the curve affects your coding (if at all) .. cheers
@PythonSimplified3 жыл бұрын
Hey Robert! 😃 I really like my curved screen, especially since it's 5k and 240hz (ultra wide and very very very curved). It's the Samsung G9 and from what I understand - it's extra curved to ensure that every point on the screen is in the same distance from the eye. With that said, I don't know if you can see any benefit in terms of coding. I can definitely guarantee it would make you feel like you're coding inside a spaceship command centre, but I don't find it's particularly beneficial in terms of programming... However - it's perfect for gaming (especially Forza and Flight Simulator, it mimics a real car/plane interface! you feel like you're inside the game) and I find that it's great for video editing. The curve makes everything look futuristic and fancy, but if your 3 screens already have 4k & 240hz features - I don't believe it's worth replacing them with the G9. Only if their specs are not near that, I would recommend doing so - your eyes will thank you! 😁
@toddbirtcher Жыл бұрын
I enjoyed learning with this video, and then I was curious what it would take to upgrade to PyQt6. I only had to change PyQt5 to PyQt6, pip install pyqt6, and change AlignCenter to AlignmentFlag.AlignCenter, change PointingHandCursor to CursorShape.PointingHandCursor. Then, I could run the game with no errors. I noticed that the window was a little larger than when it ran under PyQt5. I was doing this only to learn something and not sure why the window is larger.
@aaron.19853 жыл бұрын
This is so cool.
@J-S_93 Жыл бұрын
Just wondering why you never used auto-py-to-exe to release a completed exe version of the Trivia app on the GitHub page? It would be nice to try the completed exe app first before installing the dependencies used to run the py files standalone, as the programmer py and functions py won't function, lol; at least not w/o their requirements/dependencies being installed first - If it was in executable form, I assume it would contain within, everything it needs to run standalone, on a system that doesn't have any of the things required to make it work installed
@rangabharath42533 жыл бұрын
Awesome as always 👍😀🔥
@PythonSimplified3 жыл бұрын
Thank you so much! 😁
@liveworsei56813 жыл бұрын
Keep going I love your videos it's very informative and easy to understand!
@PythonSimplified3 жыл бұрын
Thank you so much! glad to hear you like my tutorials! 😁😁
@MrRobot2223 жыл бұрын
Really enjoying your series, thank you! What's the "one little detail"? :)
@PythonSimplified3 жыл бұрын
Thank you so much Alex! 😀 Check out Luis Solis's comment below to find the answer to the riddle 😉
@MrRobot2223 жыл бұрын
@@PythonSimplified OK, thank you. Now I'll wait for the solution! :) Or go back and try and work it out myself. Thanks again
@srushtipekamwar87842 жыл бұрын
How to check whether the answer is correct or wrong when you are entering the question instead of taking it from database ?
@franciscolagunaroses672 Жыл бұрын
the alfa keyboarb does not work in android with pyqt5. any idea
@GabrielGothmate3 жыл бұрын
Amazing as always. It was very nice to see your workflow and understand the way you kill some problems.
@genghiskhan56853 жыл бұрын
How would I create a display in pyqt5 that has information continuously updated and printed to it without having to open other windows and such. Sorry pretty new to PyQt5 and trying to figure things out. If you have a video I'd watch it, thanks for any help you can provide.
@barabasj3 жыл бұрын
Thanks a lot for the complete PyQt implementation. I have finished the deployment and everything seems to work fine, except for the questions text display that sometimes misses the second line. Any idea?
@PythonSimplified3 жыл бұрын
I've noticed that too and it's quite weird because as soon as you would move the window to a different spot on your monitor - the second line magically re-appears! 🤔 I'll definitely look into it and see how it can be fixed, as I'm not entirely sure why it works for some questions and doesn't work for others 😵😵😵 And thank you so much for your feedback Javier! I hope to have a proper solution to this shortly (please keep an eye on my Github for this)
@barabasj3 жыл бұрын
@@PythonSimplified Thanks! I'll keep looking!!!
@aleksandr36003 жыл бұрын
@@PythonSimplified Hello. Maybe i found a solution. Add this in question-widget code: question.setMinimumHeight (220)
@T4nguito Жыл бұрын
Do you have any json? Thank.... =)
@aminamini84443 жыл бұрын
💞💞💞💞💕💕💕
@mahdishahi90483 жыл бұрын
hello and thanks for your tutorials. what is the problem? score = QLabel(str(parameters["score"][-1])) IndexError: list index out of range
@codingmastery31863 жыл бұрын
Hello I New to this channel
@PythonSimplified3 жыл бұрын
Hi Coding Mastery! 😃 Welcome aboard!
@codingmastery31863 жыл бұрын
@@PythonSimplified thanks I like your pdf extracting project tomorrow I am going to make it 😊
@dhanikondavenkat10573 жыл бұрын
Database for kids kivymd app plzz
@marcelaespino32352 жыл бұрын
I followed all the steps - but I keep getting an error message that the "url cannot be found". Has anyone encounter this?
@seifanzel39753 жыл бұрын
Sis how to connect our app to SQL database? U do have it in ur video?
@paxter32193 жыл бұрын
Hi, loved the video..I was using your tutorial to used it as a study aid. I got my data from excel where I imported the questions and everything was working. Sort of it would crash after a few questions.. and now I am getting a exit code of 0 but my window no longer opens up? do you have any idea, on what I can do to fix it? Any help would be appreciated.
@SHONNER3 жыл бұрын
Line 17, I changed to window.move(700, 200) so that the app would not fly off my screen. I only have a 16x9 monitor.
@avazart6143 жыл бұрын
I agree, it is bad practice to be rigidly attached to coordinates. We can use QGuiApplication.screens().first().availableGeometry()
@PythonSimplified3 жыл бұрын
Thanks for letting me know Shonner! I had to use it for filming purposes, and forgot to comment it out. Will update the starter Files + complete project on Github later on today! 😉
@shoshanamofaz30123 жыл бұрын
Did you find PyQt5 hard to learn? Just curious
@iitpmt63993 жыл бұрын
Bring video google sheet as data base
@natinaelsamuel23502 жыл бұрын
Somebody Help me pls , how can i use my own questions instead of using fixed trivia database questions
@avazart6143 жыл бұрын
Лично мне немного режет глаза код написанный "простыней" без разбиения на файлы без использования *.ui и дизайнера форм, единой точки входа. Кроме того в данном конкретном коде не хватает обработки ошибок на случай недоступности сервера, отсутствия интернета, ответа в виде некорректного json от сервера. Все же стоит разместить загрузку с сервера где-то в конструкторе виджета или может в таймере и обязательно обрабатывать исключения и выводить их пользователю в виде QMessageBox. Обычно вместо urllib люди используют стороннюю requests она более удобная. Так как это Qt можно было бы вообще использовать QNetworkAccessManager который асинхронный.
@PythonSimplified3 жыл бұрын
Avazart, eto video dlja Python beginners! :D Ja prosto pitaius pokazat kak mojno zdelat aplikaziiu bez etih konseptov, 4tob vse ponjali 4to ja delaiu i vse mogli toje samoe zdelat na svoiem komputere. Tak mojno praktikovat Python i stroit prikolnii proekti mesto sku4nih urokov na kotorih ne kakoi praktiki net... Esli ho4esh, popitaisa izmenit moi Complete App s etimi ideami, i potom mozno eto na Github zaka4at na tvoiem imeni ;) Tak budet i versia proekta dlja Advanced Pythoneers :)
@avazart6143 жыл бұрын
@@PythonSimplified Я понимаю что для начинающих, но лично я сторонник что бы сразу показывать как писать хороший код. Да я понимаю что это может отталкивать своей сложностью да и наверное объясять такое существенно сложнее но зато дисциплинирует и делает код куда читаемым.
@PythonSimplified3 жыл бұрын
@@avazart614 eto to4no! Ja toje tak dumoiu 😃 Mojno naiti mnogo "by the book tutorials" v blogs kak Medium I Towards Data Science, ili daje v samoi QT documentation. Prosto mnogie iz teh kotorie smotrat moi video - eto delaiut iza tovo 4to oni tam ne4evo ne ponjali hahaha po etomu ja "oversimplifing", daje esli eto ne s4etaietsa "proper programming". Moi kontent dolzen bit dopolnitelnii k tradizionalnoi u4ebe, on ee ne kak ne zamenjaet 😉
@avazart6143 жыл бұрын
@@PythonSimplified А почему ты не используешь qt designer для создания ui? Это же вроде как бы проще должно восприниматься? Или я ошибаюсь? Т.е. накидать на виджет "визуально" элементы управления, настроить свойства, стиль, а уже все остальное в коде.
@deadeye1982a3 жыл бұрын
Splitting Layout from Code is one of the important rules and this is not only for QT true. So maybe you show the same project again, but then with QT-Designer. Then you can compare the resulting code. It will be lesser code. Lesser code means lesser bugs and lesser work + you have a visual feedback.
@codinganna3 жыл бұрын
You are so cute and your teaching is awesome,,but i dont know why tutorials channel are not getting musch views,,same with me,8k subs but less views
@PythonSimplified3 жыл бұрын
Thank you so much Anna! 😀 It's just a matter of time, patience, consistency and analytics - you'll get to your goal eventually, the only question is when 😉
@aamirchimthanawala21273 жыл бұрын
Is the bug that the player can see the correct answer the same way you did, by reading the answer from the printed list ?
@PythonSimplified3 жыл бұрын
Hi Aamir, you would have to print the correct answer in the end of your pre-load function, I didn't show how to do it in the video, but check out lines 51-52 in the complete app functions file: github.com/MariyaSha/TriviaGame/blob/main/Trivia%20-%20Complete%20App/functions.py Good luck, and let me know if it worked! :D
@aamirchimthanawala21273 жыл бұрын
@@PythonSimplified So I asume that wasn't the bug you were talking about in the end Also awesome videoes ma'am
@PythonSimplified3 жыл бұрын
@@aamirchimthanawala2127 nope, the real bug is more of an "imperfection" than a bug - it's a small detail that we didn't consider when preloading our data (hint: something about random) 😉 And thank you so much! 😁
@BJCP3 жыл бұрын
@@PythonSimplified Is it getting the same question / answer twice in one game?
@rvmishra98813 жыл бұрын
I was expecting your CAT 🐈 tutoring in this video.!
@PythonSimplified3 жыл бұрын
hahahaha he also was expecting that!!! 😹 I'm sure it would have been a very productive tutorial about how to cat XD
@rvmishra98813 жыл бұрын
@@PythonSimplified Cats are very underrated in CS community but physicists care their talents.!
@PythonSimplified3 жыл бұрын
@@rvmishra9881 especially Schrodinger 😉
@waelkassaoui91823 жыл бұрын
Can you do application pyqt5 with graphics of sensors
@PythonSimplified3 жыл бұрын
Hi Wael! :) I haven't had a chance to work with sensors + Python yet, I've so far dealt with the software side of things. But I do believe you can connect sensors to QT apps as I've seen a few examples on Stack Overflow - it's just a matter of research 😀
@waelkassaoui91823 жыл бұрын
@@PythonSimplified yes you are right but i follow your vidéo you are source of inspiration for me so please could you do vidéo to show how to lay sensors with Qt designer and do plot wave with pyqtgraph thank you for advance ;)
@ruxxuc20913 жыл бұрын
what is the best Library Tkinter or PyQt5 ??
@avazart6143 жыл бұрын
PyQt5
@PythonSimplified3 жыл бұрын
For personal use I absolutely agree with Avazart! PyQt5 is much more intuitive, user-friendly, stylish, and interactive. Also many people find the QT Designer useful. I haven't used it in this video, but I got many comments wondering how come I didn't (ehem ehem Avazart 😂) For commercial use, people prefer Tkinter because it has better licensing options, but the widgets are very old school, the commands are not as intuitive and in general - it lacks a lot of styling options. It was a real nightmare developing my advanced PDF Extract app. I recommend reading what miko007 wrote in this community post: kzbin.infoUgx7FTaTtzd_kf5k39t4AaABCQ I specifically asked him about the difference between Tkinter and PyQt5 and he had lots of interesting things to say 😃 You may find it very useful for solving your dilemma 😉
@avazart6143 жыл бұрын
@@PythonSimplified The devil is in the details. Tkinter contains a ttk sub-library with more stylish windows PySide2 is a complete PyQt5 clone but with a different license. Among other things, there is the Kivy library. IMHO, Qt is better than Tkinter due to the presence of the Qt Designer and more understandable layers. More importantly, Qt has its own means for synchronizing threads, which allows you to build interactive applications without freezing. Qt support MVC pattern what is useful when working with databases. But Qt is library with heavyweight binary files. More options - more in weight. Qt contains libraries not only for GUI: for working with the network, charts, databases, serial port, etc. So I would argue with @ miko007
@sandeepyadav14783 жыл бұрын
I m damn sure this girl have gaming channel also.
@PythonSimplified3 жыл бұрын
Nope 😀 (or at least not yet hahaha)
@vijayakumarp19343 жыл бұрын
Hiiiii
@gredelonghi3 жыл бұрын
No "QUIT GAME button"
@PythonSimplified3 жыл бұрын
You can just simply close the window... no? 😊 Try pressing on "X" or on the red button, depending on the OS you're using. You can also add it to your version of the game... I just find it a bit unnecessary as the OS provides us with a very convenient way of quitting regardless of a "quit game" button 😀
@davidpimental6704 Жыл бұрын
Are there other "open database api" sites that can be used for different types of trivia type games, such as bible trivia? Thanks in advance, dpimental
@rakibul50010 ай бұрын
hi sister
@wtfdoiputhere3 жыл бұрын
Im here for the setup sorry
@PythonSimplified3 жыл бұрын
I'm very disappointment layZ!!!! 🤪
@sida_g5673 жыл бұрын
Single?
@PythonSimplified3 жыл бұрын
Nope
@Salfriel2 жыл бұрын
lmao imaging coming to a programming tutorial only to ask about her person's dating life. oh dear lord.
@SHONNER3 жыл бұрын
Looks like we crashed their server.
@PythonSimplified3 жыл бұрын
Holly smokes, did we??? I'm so proud! 🤣🤣🤣
@SHONNER3 жыл бұрын
@@PythonSimplified Turns out that some of the options we select have nothing to return back from the server. So not really a crash. More of an empty set return.
@antorzuck3 жыл бұрын
I hope she didn't use OOP.
@PythonSimplified3 жыл бұрын
Don't worry, we're not using objects/classes just yet 😉 However, I'll be teaching it shortly on this channel (not as part of 30 min projects though hahaha, but lone-standing Python basics tutorials)
@avazart6143 жыл бұрын
Why?
@PythonSimplified3 жыл бұрын
@@avazart614 I find classes/multi-threading/self/etc. to be a bit challenging without a proper explanation. My first adventure with Python was an Artificial Intelligence course where they didn't teach these concepts well - they just showed us how to do it and left us wondering about all the rest. It wasn't until I started working with P5.Js and building Javascript web apps that I fully understood the concept of OOP and why classes are better to use than regular functions. Now I'm applying these principles with Python, but I'm sure that classes are very intimidating for many people... I just avoid using them in my tutorials until I properly teach them 😀
@avazart6143 жыл бұрын
@@PythonSimplified Qt все же про ООП а еще сигналы слоты и очередь сообщений тут без этого никак. Как по мне отсутствие перечисленных знаний сильно мешают использовать Qt эффективно.
@SHONNER3 жыл бұрын
@@avazart614 OOP has its uses. Just not in every program that is written.