fork download
  1. import bpy
  2.  
  3.  
  4. class UI_PT_TEST_1(bpy.types.Panel):
  5. bl_label = "TEST"
  6. bl_space_type = "VIEW_3D"
  7. bl_region_type = "TOOLS"
  8.  
  9. def draw(self, context):
  10. self.layout.operator("mesh.select_linked_pick")
  11.  
  12. bpy.utils.register_class(UI_PT_TEST_1)
  13.  
Runtime error #stdin #stdout #stderr 0.01s 7272KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
ImportError: No module named bpy