Why wont this work?!?!

So I was watching a tut on Blender cookie about scripting. And in the first few minutes of it said type this, and I followed it. But when he did it… Stuff happened. When I did it. Nothing happened.
import bpy

class addObjectPrimitives(bpy.types.Panel):
bl_label = “Add Object Primitives”
bl_space_type = “VIEW_3D”
bl_region_type = “TOOLS”
bl_context = “objectmode”

def draw(self, context):
   layout = sel.layout
   col = layout.columns(align=True)

Wont show anything like when he did it. Why?

Try “layout = self.layout”.

Just did, still won’t work, keeps brng up something bout type. And thts invalid or something

try something like this


 
import bpy
from bpy.props import *
 
 
 
bpy.types.Scene.MyCkeckbox1 = BoolProperty(
  name="Boolean", 
  description="True or False?")
bpy.context.scene['MyCkeckbox1'] = False
 
 
class addObjectPrimitives(bpy.types.Panel):
 
 
 
 bl_label = "Simple Panel"        # Header Panel's  name
 bl_space_type = "VIEW_3D"        # in 3D view
#   bl_region_type = "TOOLS"       # in tool shelf
 bl_region_type = "TOOL_PROPS"  
 bl_show_header=True  
 
 
 
 
 
 
 def draw(self, context):
 
  layout = self.layout
  scene = context.scene
 
  col = layout.column()
  col.label(' menu color shade:', 'LAMP_DATA')
 
  col.prop(scene, "MyCkeckbox1", text = "color ")
 
 
 
def register():
 
 bpy.utils.register_class(addObjectPrimitives)
 
def unregister():
 bpy.utils.unregister_class(addObjectPrimitives)
 
if __name__ == "__main__":
 register()
 
 
 
 
 
 

salutations