File: usersguide.py

package info (click to toggle)
sketch 0.6.13-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,284 kB
  • ctags: 8,453
  • sloc: python: 34,711; ansic: 16,543; makefile: 83; sh: 26
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")