Hi
I have problem with on_clic and related methods
class Buttons(pudding.control.Button,pudding.control.SimpleLabel):
def __init__(self,label,left):
button = pudding.control.Button(w, label, left = left, width
= 30, height = 25)
button.set_pos_bottom_right(bottom = 10)
button.anchors = pudding.ANCHOR_BOTTOM | pudding.ANCHOR_LEFT
button1_l =
pudding.control.SimpleLabel(w,left=left+5,width=30, height=25,label
= label)
button1_l.set_pos_bottom_right(bottom=10)
x = Buttons("Exit",10)
x2 = Buttons("Chat",50)
In above script i cant handle on_click , on_focus metods :( any Ideas?
When I wrote button instance in main script here is no problem.
For example:
button = pudding.control.Button(w, label, left = left, width =
30, height = 25)
button.set_pos_bottom_right(bottom = 10)
button.on_click = sys.exit()
(visit http://www.soya3d.cjb.net and Fan Forum )