File: usersguide.py

package info (click to toggle)
skencil 0.6.17-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,136 kB
  • ctags: 8,589
  • sloc: python: 36,672; ansic: 16,571; sh: 151; makefile: 92
file content (12 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#
# Scripts from the users guide
#

def hello_world(context):
    context.application.MessageBox(title = "My Script", 
                                   message = "Hello World!")

# register scripts
import Sketch.Scripting
Sketch.Scripting.AddFunction('ug_hello_world', 'Hello World',
                             hello_world, menu = "User's Guide")