[Bf-python] Crazy tooltip bug
Manuel Bastioni
manuelbastioni at tin.it
Thu Mar 25 22:50:58 CET 2004
Try this: the tooltips (printed correctly in the debug)
is wrong and even (in some cases)
strange symbols (that I never seen
in ASCII table). In other previous
test (not attached here) with more complex scripts,
the tooltips are word as "stdout", "RotX", "exec" and similar...
In the better case, the tooltips are in the wrong
association with buttons...
This is a very simplified script to show the problem.
I've attached the same in .py too.
I've test it under win, with all 2.3x series, included CVS.
Regards,
Manuel
-----------------------------------------------------
import Blender
from Blender.Draw import *
from Blender.BGL import *
listOfNames = ["aa-tooltip1","bb-tooltip2","cc-tooltip3","dd-tooltip4"]
def draw():
glClearColor(0.0, 0.0, 0.0, 0.0)
glClear(GL_COLOR_BUFFER_BIT)
i = 0; height = 200
for Name in listOfNames:
buttonName = Name.split(".")[0]
buttonLabel = buttonName.split("-")[0]
buttonTtip = buttonName.split("-")[1]
Number(buttonLabel, \
1, \
100, \
height, \
100, \
20, \
0.5,\
-1,1,buttonTtip)
i += 1; height -= 20
print "LABEL AND TOOLTIP: ", buttonLabel, buttonTtip
def bevent(evt):
if (evt):Exit(); return
def event(evt, val):
if (evt== ESCKEY and not val): Exit(); return
else: return
Register(draw, event, bevent)
Register(draw, event, bevent)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ttpbug.py
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040325/47b612d5/attachment.ksh>
More information about the Bf-python
mailing list