diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-27 15:37:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-27 15:37:54 +0400 |
commit | 66238eab7c618286f4097254e255db44b29d4e61 (patch) | |
tree | b10ecf479d94c4ef6f9bb12ae883d8f5e60c1ccf /release | |
parent | 0326ec77a939e3377e77c5e250848c9ea6362312 (diff) |
PyAPI
curve - added curve_type() to return the curve type
BPyModule & gen_library - works with text3d now, can also make new text3d through bpy.curves.new
Added Draw.Label() so scripts can draw can using freetype.
widgetwizard - use Draw.Label
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/widgetwizard.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/release/scripts/widgetwizard.py b/release/scripts/widgetwizard.py index 8ace2129e11..48168e11681 100644 --- a/release/scripts/widgetwizard.py +++ b/release/scripts/widgetwizard.py @@ -378,8 +378,7 @@ def setupDrivers(ob,ctrl,type): def build(type): global shapes,widmenu,rangename - sce = Blender.Scene.GetCurrent() - + sce = bpy.scenes.active ob = sce.objects.active try: @@ -411,7 +410,7 @@ def build(type): #Create the text def makeText(sce, name): - txt = Text3d.New(name+".name") + txt = bpy.curves.new(name+'.name', 'Text3d') txt.setDrawMode(Text3d.DRAW3D) txt.setAlignment(Text3d.MIDDLE) @@ -603,6 +602,7 @@ def shapeMenuText(): #draw the widget for the gui def drawWidget(type): + glColor3f(0.0,0.0,0.0) global shapes if type == SHAPE1_ONE_MONE:# 1 to -1 Single Shape glBegin(GL_LINE_STRIP) @@ -855,8 +855,10 @@ def drawWidget(type): def draw(): global widmenu,numshapes,stage,type, shapes,rangename - glRasterPos2d(5,200) - Text("Shape Widget Wizard","large") + #glRasterPos2d(5,200) + #Text("Shape Widget Wizard","large") + Label("Shape Widget Wizard", 5,200, 200, 12) + PushButton("Quit", EVENT_EXIT, 5, 5, 50, 18) if stage == 1: |