def initWidget(widget): global input1, input2, output, fontSize #input = karamba.getThemeInputBox(widget, "input01") input1 = karamba.createInputBox(widget,0,0,50,20,"foo") input2 = karamba.createInputBox(widget,0,30,50,20,"bar") fontSize = karamba.getInputBoxFontSize(widget, input2) output = karamba.getThemeText(widget, "output01") karamba.changeTextColor(widget, output, 0, 0, 0) karamba.changeTextSize(widget, output, 10) karamba.redrawWidget(widget)
def initWidget(widget): global input1, input2, output, fontSize #input = karamba.getThemeInputBox(widget, "input01") input1 = karamba.createInputBox(widget, 0, 0, 50, 20, "foo") input2 = karamba.createInputBox(widget, 0, 30, 50, 20, "bar") fontSize = karamba.getInputBoxFontSize(widget, input2) output = karamba.getThemeText(widget, "output01") karamba.changeTextColor(widget, output, 0, 0, 0) karamba.changeTextSize(widget, output, 10) karamba.redrawWidget(widget)
def initWidget(widget): global input, output #input = karamba.getThemeInputBox(widget, "input01") input = karamba.createInputBox(widget, 0, 0, 50, 20, "foo") output = karamba.getThemeText(widget, "output01") karamba.changeTextColor(widget, output, 0, 0, 0) karamba.changeTextSize(widget, output, 10) karamba.redrawWidget(widget)
def initWidget(widget): global input, output #input = karamba.getThemeInputBox(widget, "input01") input = karamba.createInputBox(widget,0,0,50,20,"foo") output = karamba.getThemeText(widget, "output01") karamba.changeTextColor(widget, output, 0, 0, 0) karamba.changeTextSize(widget, output, 10) karamba.redrawWidget(widget)