コード例 #1
0
ファイル: input_api.py プロジェクト: Fat-Zer/tdeutils
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)
コード例 #2
0
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)
コード例 #3
0
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)
コード例 #4
0
ファイル: input_example.py プロジェクト: Fat-Zer/tdeutils
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)