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.
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? 😉
@@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.
@@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! 🤩
@@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))
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.
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).
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 😅): ruclips.net/video/Y0HN9tdLuJo/видео.html
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.
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) 😉
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
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! 😁
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 😉
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.
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
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 😜
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..!😊
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
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 :)
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.
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...
@@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. ++
@@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.
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.
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.
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?
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)
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! 😉
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
@@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! 😁
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.
Лично мне немного режет глаза код написанный "простыней" без разбиения на файлы без использования *.ui и дизайнера форм, единой точки входа. Кроме того в данном конкретном коде не хватает обработки ошибок на случай недоступности сервера, отсутствия интернета, ответа в виде некорректного json от сервера. Все же стоит разместить загрузку с сервера где-то в конструкторе виджета или может в таймере и обязательно обрабатывать исключения и выводить их пользователю в виде QMessageBox. Обычно вместо urllib люди используют стороннюю requests она более удобная. Так как это Qt можно было бы вообще использовать QNetworkAccessManager который асинхронный.
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 :)
@@PythonSimplified Я понимаю что для начинающих, но лично я сторонник что бы сразу показывать как писать хороший код. Да я понимаю что это может отталкивать своей сложностью да и наверное объясять такое существенно сложнее но зато дисциплинирует и делает код куда читаемым.
@@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 😉
@@PythonSimplified А почему ты не используешь qt designer для создания ui? Это же вроде как бы проще должно восприниматься? Или я ошибаюсь? Т.е. накидать на виджет "визуально" элементы управления, настроить свойства, стиль, а уже все остальное в коде.
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.
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 😉
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 😀
@@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 ;)
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: ruclips.net/user/postUgx7FTaTtzd_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 😉
@@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
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
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 😀
@@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.
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)
@@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 😀
@@PythonSimplified Qt все же про ООП а еще сигналы слоты и очередь сообщений тут без этого никак. Как по мне отсутствие перечисленных знаний сильно мешают использовать Qt эффективно.
Your teaching is easy to understand loved the way you explained;-);-)
Thank you so much, I'm glad you liked it! 😃
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.
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? 😉
@@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.
@@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! 🤩
@@PythonSimplified Thank you so much Sensei. I will wait for your new tutorial, I'm so new to programming in Python.
@@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))
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.
So looking forward to this. :D
Yey! super glad to hear that, thank you!! 😃
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).
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 😅):
ruclips.net/video/Y0HN9tdLuJo/видео.html
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.
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) 😉
@@PythonSimplified, It's pleasent to see your reply and now I know your logic, pretty smart enough..
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
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! 😁
Great video
can you do a video of PyQt vs tkinter ??
and which one is the best for GUI dev
27:19 it's my favorite moment hehe. excellent tutorial please keep teaching about graphics applications.
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 😉
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.
Hey man, that's a feature. I think the bug is the centering of the score inside the green circle.
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
hello, I have a project that I created with localhost and I want to make it an application, how can I do it?
Correct me if I'm false, but I think Json isn't a database technique...
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 😜
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!
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..!😊
Thanks for the video! I wonder how you would compare this to Kivy Applications? We use Kivy for fast python GUI's.
Смотрел бы и смотрел :)
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
An amazing video like always! Thank you from bottom of my heart and see you in the next video.
Thank you so much for the incredible support! 😃😃😃
👍🏼👍🏼👍🏼
nice video and nicer presentation.
Love the way how you explain!! Thanks
Really enjoying your series, thank you! What's the "one little detail"? :)
Thank you so much Alex! 😀
Check out Luis Solis's comment below to find the answer to the riddle 😉
@@PythonSimplified OK, thank you. Now I'll wait for the solution! :) Or go back and try and work it out myself. Thanks again
Outstanding, Thank you very much. I would love to see this tutorial built with Kivy if that is possible?
Very simple and understandable
Another great video. I love your PyQT videos.
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 :)
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.
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...
@@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. ++
@@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.
@@alfredclausen2593 What "And then..."? Dont project your sht on me.
VERY GOOD
Thank you! 😊
Awesome as always 👍😀🔥
Thank you so much! 😁
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.
Awesome!!! TQVM!!
You're welcome! glad you liked it! 😃
How to check whether the answer is correct or wrong when you are entering the question instead of taking it from database ?
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.
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?
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)
@@PythonSimplified Thanks! I'll keep looking!!!
@@PythonSimplified Hello. Maybe i found a solution. Add this in question-widget code: question.setMinimumHeight (220)
Do you have any json? Thank.... =)
the alfa keyboarb does not work in android with pyqt5. any idea
You are awesome
merci pour votre enseignement
hello and thanks for your tutorials.
what is the problem?
score = QLabel(str(parameters["score"][-1]))
IndexError: list index out of range
I followed all the steps - but I keep getting an error message that the "url cannot be found". Has anyone encounter this?
Hello. Tank you
Keep going I love your videos it's very informative and easy to understand!
Thank you so much! glad to hear you like my tutorials! 😁😁
Sis how to connect our app to SQL database?
U do have it in ur video?
Did you find PyQt5 hard to learn? Just curious
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.
I agree, it is bad practice to be rigidly attached to coordinates.
We can use QGuiApplication.screens().first().availableGeometry()
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! 😉
Somebody Help me pls , how can i use my own questions instead of using fixed trivia database questions
Is the bug that the player can see the correct answer the same way you did, by reading the answer from the printed list ?
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
@@PythonSimplified So I asume that wasn't the bug you were talking about in the end
Also awesome videoes ma'am
@@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! 😁
@@PythonSimplified Is it getting the same question / answer twice in one game?
This is so cool.
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.
Amazing as always.
It was very nice to see your workflow and understand the way you kill some problems.
Database for kids kivymd app plzz
Лично мне немного режет глаза код написанный "простыней" без разбиения на файлы без использования *.ui и дизайнера форм, единой точки входа.
Кроме того в данном конкретном коде не хватает обработки ошибок на случай недоступности сервера, отсутствия интернета, ответа в виде некорректного json от сервера.
Все же стоит разместить загрузку с сервера где-то в конструкторе виджета или может в таймере и обязательно обрабатывать исключения и выводить их пользователю в виде QMessageBox. Обычно вместо urllib люди используют стороннюю requests она более удобная. Так как это Qt можно было бы вообще использовать QNetworkAccessManager который асинхронный.
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 :)
@@PythonSimplified Я понимаю что для начинающих, но лично я сторонник что бы сразу показывать как писать хороший код. Да я понимаю что это может отталкивать своей сложностью да и наверное объясять такое существенно сложнее но зато дисциплинирует и делает код куда читаемым.
@@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 😉
@@PythonSimplified А почему ты не используешь qt designer для создания ui?
Это же вроде как бы проще должно восприниматься? Или я ошибаюсь?
Т.е. накидать на виджет "визуально" элементы управления, настроить свойства, стиль, а уже все остальное в коде.
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.
Hello I New to this channel
Hi Coding Mastery! 😃
Welcome aboard!
@@PythonSimplified thanks I like your pdf extracting project tomorrow I am going to make it 😊
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
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 😉
Can you do application pyqt5 with graphics of sensors
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 😀
@@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 ;)
Bring video google sheet as data base
what is the best Library Tkinter or PyQt5 ??
PyQt5
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:
ruclips.net/user/postUgx7FTaTtzd_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 😉
@@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
I was expecting your CAT 🐈 tutoring in this video.!
hahahaha he also was expecting that!!! 😹
I'm sure it would have been a very productive tutorial about how to cat XD
@@PythonSimplified Cats are very underrated in CS community but physicists care their talents.!
@@rvmishra9881 especially Schrodinger 😉
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
💞💞💞💞💕💕💕
I m damn sure this girl have gaming channel also.
Nope 😀 (or at least not yet hahaha)
No "QUIT GAME button"
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 😀
Hiiiii
Im here for the setup sorry
I'm very disappointment layZ!!!! 🤪
hi sister
Single?
Nope
lmao imaging coming to a programming tutorial only to ask about her person's dating life. oh dear lord.
Looks like we crashed their server.
Holly smokes, did we??? I'm so proud! 🤣🤣🤣
@@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.
I hope she didn't use OOP.
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)
Why?
@@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 😀
@@PythonSimplified Qt все же про ООП а еще сигналы слоты и очередь сообщений тут без этого никак. Как по мне отсутствие перечисленных знаний сильно мешают использовать Qt эффективно.
@@avazart614 OOP has its uses. Just not in every program that is written.