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

preview_player
Показать описание
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:

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
Рекомендации по теме
Комментарии
Автор

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!

nerdytopics
Автор

Another excellent lecture, thank you. Successfully added an opacity control slider for the hands.

steveholt
Автор

Last episode of a legendary series! Thanks Mr.McWhorter

arniboygames
Автор

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!

cbrombaugh
Автор

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.

justmc
Автор

I loved this tutorial: it was really great being able to interact with the 3D animation. Thanks again.

alfredcalleja
Автор

Nice -- ageless -- transition from tutorial 20 in Tx to tutorial 21 on the Nile !!

peterarauch
Автор

Thanks! Excited to continue with the fusion of Arduino and Python.

zoltantakacs
Автор

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

robinwood
Автор

Fun addition to the previous lessons. Thank You Paul.

wendygrant
Автор

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.

ClestNerd
Автор

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!

garethhunt
Автор

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?

fransvanenschot
Автор

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?

hughjardon
Автор

Will you please teach how to use multithreading in vpython in drawing two curves at a time with
Same rate

jagarapupalavellinaidu
Автор

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.

chrisb
Автор

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

aliakbar
Автор

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

philluvschips
Автор

Why did you not have to define marble as a global in the bigBall function?

stefanonicolini
Автор

Question, is it a must to know how to use all the Arduino components big you want to become an Arduino engineer?

chernoblyat