Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-03-27 15:37:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-03-27 15:37:54 +0400
commit66238eab7c618286f4097254e255db44b29d4e61 (patch)
treeb10ecf479d94c4ef6f9bb12ae883d8f5e60c1ccf /release/scripts/widgetwizard.py
parent0326ec77a939e3377e77c5e250848c9ea6362312 (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/scripts/widgetwizard.py')
-rw-r--r--release/scripts/widgetwizard.py12
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: