Boston Python Workshop 5/Friday: Difference between revisions

m
Protected "Boston Python Workshop 5/Friday" ([edit=sysop] (indefinite) [move=sysop] (indefinite))
imported>Jesstess
m (Protected "Boston Python Workshop 5/Friday" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 5:
At the end, a staff member will go through a checklist with you to make sure you're all set for tomorrow.
 
== Goal #1: set up Python ==
So we've established what you're wiilnlg to pay for as a consumer; it's service'.To get your business in the first place, there has to be someone to press the Big Red Switch when needed; and to keep your business, there has to be someone to install the latest Python. You don't need a guarantee that the Python will actually work; you'll take your own chances with that.I get the feeling there's going to be a bit of a culture clash when the Microsoft salesman shows up and tries selling you software'. Do keep us posted.
 
This section has instructions for installing Python and running Python from a command prompt.
 
* [[Boston Python Workshop 5/Friday/Windows set up Python|Windows]]
* [[Boston Python Workshop 5/Friday/OSX set up Python|OS X]]
* [[Boston Python Workshop 5/Friday/Linux set up Python|Linux]]
 
== Goal #2: prepare a text editor ==
Line 99 ⟶ 105:
</ol>
 
==Congratulations!==
Hey Brock,Seems there are a few small errors with your sircpt. The most important one is that you'll want to have lines 59 and 60 all the way to the left, with no whitespace in front of it. Right now python will think these lines are still part of your class.Then in line 21 you'll need to use curly braces {} for your bl_options, rather than parenthesis ().After doing this, the sircpt will not return any errors but the button won't show. This is because on line 13 the operator should be between quotation marks so that it reads layout.operator( object.random_material )On line 48 you made a small typo (availabeMaterials, instead of availableMaterials).Lastly, on line 50 you'll want to use square brackets [] instead of parenthesis () to access the randnum key.These are all minor mistakes though, so don't get discouraged! =)
 
You are done with the Friday portion of this Workshop. We'll see you at 9:30am tomorrow back here at MIT in ([[Boston_Python_Workshop_4#Location| room 32-155]] )! Please bring the laptop you used tonight.
 
If you have any questions, comments, or feedback on tonight's material, don't hesitate to let a staff member know.
 
[[Boston Python Workshop 5|&laquo; Back to the Workshop home page]]
Anonymous user