Making a Custom Panel

I’m currently making a custom panel where I want to be able to do the following:

  • Input dimensions of an object to be created
  • Have a button add a new object of said dimensions
  • Have a button to run a separate scr ipt I’ve written, or run the scr ipt as a function within the panel scr ipt
  • Input variables to be called upon when running said scr ipt

I’m not really sure how to create simple panel inputs linked to custom variables and I’m having a really hard time finding much guidance for creating a nice custom panel. Can anyone offer some guidance towards completing these tasks and/or point me towards some information on creating a custom panel?

P.S. If you’re wondering why I keep putting a space between scr ipt, it’s because for some reason this is forbidden to me because of my low post count.

Launch Blender 2.5.
Switch to the Scripting layout.
Click on the menu word Text in the text window.
Move your mouse up to Script Templates and choose one.

This does not cover all your points, but at least you can see some various working code examples. Take a look at Mesh Add and Simple Panel.