Python 3D Graphics Tutorial 21: Understanding and Using Widgets in Vpython

  Рет қаралды 10,228

Paul McWhorter

Paul McWhorter

2 жыл бұрын

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this video we show step-by-step instructions on how to make our python models interactive by creating widgets. We interact with the model through use of the widgets. We demonstrate creation and use of drop down menus, radio buttons, check boxes and slider bars.
#Python
#Lessons
#Vpython

Пікірлер: 47
@nerdytopics6309
@nerdytopics6309 2 жыл бұрын
I do have to say that you are a fantastic teacher, as unlike many other youtube channels that try to teach coding lessons you actually give vivid explainations as to how to do things which at least for me makes the learning process much more simple! Anyway thank you so much for making these videos, as I have learned a great deal from your videos and Playlists!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wow, thank you!
@aungphyokyaw4475
@aungphyokyaw4475 9 күн бұрын
Agreed!
@steveholt8991
@steveholt8991 16 күн бұрын
Another excellent lecture, thank you. Successfully added an opacity control slider for the hands.
@arniboy1games93
@arniboy1games93 11 ай бұрын
Last episode of a legendary series! Thanks Mr.McWhorter
@cbrombaugh
@cbrombaugh 2 жыл бұрын
I am really excited about using my Arduino with Python. I feel that both this course and the AI course have been leading up to this point. Thanks for all the work you have put into preparing all of these lessons Paul. You are definitely the best teacher I have seen on the Internet! Keep up the good work!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Great to hear!
@alfredcalleja450
@alfredcalleja450 11 ай бұрын
I loved this tutorial: it was really great being able to interact with the 3D animation. Thanks again.
@paulmcwhorter
@paulmcwhorter 11 ай бұрын
Glad you enjoyed it!
@pralaymajumdar1206
@pralaymajumdar1206 2 жыл бұрын
Extraordinary lesson.
@justmc62
@justmc62 Жыл бұрын
Thank you Paul for your fantastic tutorials.. Taken your Arduino, Python, vPython and now PicoW. Looking foward to the next adventure of Python with the Arduino.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Thanks! Really appreciate the support, it means a lot
@peterarauch7436
@peterarauch7436 2 жыл бұрын
Nice -- ageless -- transition from tutorial 20 in Tx to tutorial 21 on the Nile !!
@robinwood5833
@robinwood5833 2 жыл бұрын
Hi Paul, great video which i am thoroughly enjoying, i had trouble with the ball speed working?,on your Top Tec boy Tutorial 21, the While True: xpos=xpos+deltaX*run is different than in the lesson as it contains xpos=xpos+delta*run*mySpeed, when i copied the Top Tec code it worked,i cannot wait to try the clock widgets cheers....Robin from Downunder
@danny12345
@danny12345 2 жыл бұрын
Thank you
@zoltantakacs3812
@zoltantakacs3812 Жыл бұрын
Thanks! Excited to continue with the fusion of Arduino and Python.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Wow, really appreciate that. Thank you for the support
@hughjardon5101
@hughjardon5101 2 жыл бұрын
Again, another excellent tutorial. A question and a point... Radio buttons, unlike check boxes, are used as unique selectors from a group of options, so how do you create a 'radio group'? Would it not be more code efficient to put the "marble.radius=mRadius" just once after both 'if' statements in the bigBall() function?
@fransvanenschot3286
@fransvanenschot3286 2 жыл бұрын
Hi Paul, Thanks again for this excellent lesson. off course i have a question again. i run the program on firefox and i see on the underside and right side from the window a white border. De border on the underside overlaps now a little bit off the radiobutton and checkbox. i not see that two borders on your tutorial. How can i remove this two borders?
@wendygrant2735
@wendygrant2735 2 жыл бұрын
Fun addition to the previous lessons. Thank You Paul.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Glad you liked it!
@jagarapupalavellinaidu1624
@jagarapupalavellinaidu1624 2 жыл бұрын
Will you please teach how to use multithreading in vpython in drawing two curves at a time with Same rate
@garethhunt6220
@garethhunt6220 Жыл бұрын
Hi Paul, I have learnt so much from your most excellent tutorials, and I think a lot of you tubers could learn a lot from you, I'd appreciate you may not be able to answer specific questions but I thought I'd ask id like to take what I've learnt here and build a robotic arm linked to arduino controlled via the vpython, the easy out would be to list 6 sliders, and animate the arms and drive the servo outputs, my question is there such a thing as a 2axis slider, aka a virtual joystick? Thought then I could run on mobile Web browser and control via touchscreen anyway keep up the good work!
@C00lestNerd
@C00lestNerd Жыл бұрын
Instead of using the if statement to convert the drop down menu items, you can simply use the int() function to convert the selected value to an integer.
@aliakbar4068
@aliakbar4068 Жыл бұрын
I do not understand about runRadio and bigBall function you have created it with parameter (x) but in radio and checkbox class you did not pass any argument to it?? plz illustrate it
@chernoblyat1901
@chernoblyat1901 2 жыл бұрын
Question, is it a must to know how to use all the Arduino components big you want to become an Arduino engineer?
@harisl5994
@harisl5994 2 жыл бұрын
No there is no need
@harisl5994
@harisl5994 2 жыл бұрын
Just learn he important components such as motors, sensors (ultra sonic sensor mist used but sound is also used), leds, headboards, and there are some more such as lcd
@keithlohmeyer
@keithlohmeyer 2 жыл бұрын
Arduino engineer? Not sure if that is even a thing? Once you get the basics of Arduino, then you need to learn to search for info on new components you want to use, learn to read component datasheets, learn to create your own libraries for I/O, etc. If you want to be a hardware developer you will quickly move beyond breadboards, Dupont wires and even the Arduino board itself. For commercial products you will use custom circuit boards so you need to learn PCB design. And on and on.
@philluvschips3787
@philluvschips3787 4 ай бұрын
Before we continue with the Arduino / Python lessons here the final clock with color sliders, radio buttons and an alarm set with two drop down boxes, that was fun getting the alarm to sound at the time set... kzbin.info/www/bejne/qqGpf6KEnrmLgpo
@paulmcwhorter
@paulmcwhorter 4 ай бұрын
LEGEND!
@stefanonicolini2090
@stefanonicolini2090 2 жыл бұрын
Why did you not have to define marble as a global in the bigBall function?
@keithlohmeyer
@keithlohmeyer 2 жыл бұрын
marble is an object of the sphere class and there is a self.radius defined in the sphere class which is global by default. So we can check or set marble.radius from anywhere.
@jeanmahe8657
@jeanmahe8657 2 жыл бұрын
hellllllllooooooo fellow smart people
@chrisb7250
@chrisb7250 6 ай бұрын
I got 90 percent of the way and folded up like a cheap lawn chair. If I had thought back to some of the previous lessons where we worked with Strings in python, I probably could have solved it myself. I did peak at some of the solutions in the comments. I can't believe I didn't think to go back to those earlier lessons! Another very enjoyable lesson. Thank you Paul. kzbin.info/www/bejne/ZqWbo6ODbd6HpJY
@MrElFRanz
@MrElFRanz 2 жыл бұрын
Hello Paul. Here one can see how some buttons interact with the clock: kzbin.info/www/bejne/gmSWnnqemteUnK8 I have not been able to change the colors, but I will keep trying. Thanks for this lesson.
@keithlohmeyer
@keithlohmeyer 2 жыл бұрын
Homework video posted kzbin.info/www/bejne/qX61eaCPr7eGndU Thanks Paul for all you do.
@Meganano
@Meganano 2 жыл бұрын
heres my clock kzbin.info/www/bejne/jJ7YpmSaicaKjpI updated and final clock😁
@michelmilaneh8963
@michelmilaneh8963 2 жыл бұрын
you have an excellent clock , good job
@chrisb7250
@chrisb7250 6 ай бұрын
I was able to complete this assignment! I had taken a week off from when I first watched the lesson to when I actually attempted it, and had a typo from what I had defined the function as (def _____) to what I was binding it too (radio(bind=____). After an hour of trouble shooting I almost gave up, but went back and watched the lesson and went through the steps slowly. I luckily came across my mistake and was able to get the widgets added. Its a lot more fun when the widgets are working! lol here is my solution.. kzbin.info/www/bejne/o4iniWurr5KUmNk
@paulmcwhorter
@paulmcwhorter 6 ай бұрын
LEGEND!
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 14 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 72 МЛН
Modern Python logging
21:32
mCoding
Рет қаралды 169 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 854 М.
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 697 М.
Elon Musk update on 2nd human who got Neuralink implant
9:12
Lex Clips
Рет қаралды 65 М.
Python Tutorial 13: Understanding Python While Loops
21:56
Paul McWhorter
Рет қаралды 20 М.
Microsoft Is KILLING Windows | ft. Steve @GamersNexus
19:19
Level1Techs
Рет қаралды 288 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 8 МЛН
low battery 🪫
0:10
dednahype
Рет қаралды 1,7 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 817 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 4,5 МЛН