2.49 sripts convert to 2.54 (prototype for text info?)

Lately I was busy with conversion existing script for <=2.49 to 2.54

One idea of mine you can find in http://blenderartists.org/forum/showthread.php?t=76722
#19
To have a ‘text-lines’ as info (what was done with Draw.text …)

It is build out of the templates for mouse info and interaction …

Good idea, bad idea? (Prototype?)

why not simply use a label to show the text ?

unless you don’t want it inside a box !

can you show a pic of what it does to show how it looks

i’d like to see a text box with some scoll bars up/down and horz
that way you can put lot of text and scroll when needed!

happy 2.5

Run the example!

I dont know why you’re typing ALL those controls one by one. I am a fan of a way more automated approaches such as:

lst = ["This script will create a Sun lamp (Sun) with",
"a Track to constraint to an object called",
"SunPOE (Point on Earth).",
...............................................]
.............................
.............................
row_height = 13
for i in range(len(lst)):
  blf.position(font_id,15, y-90+i*row_height,0)
  blf.draw(font_id,lst[i])

Im currently working on a wide use of such type of approaches when dealing with Blender Python interface(s). As soon as Im relatively ready with this, I will publish it, of course :wink:

Regards,

Sure! If possible, it is much nicer!
But I am trying to use as much as possible old scripts and replacing old things by new things either by a suitable regular expression replace or even a macro to convert (suitable parts) from old to new.

Your example is especially useful to show a rectangel filled with text!
SO WE USE THAT as prototype to show a bunch of Info (text only …) agreed!