Ejemplo n.º 1
0
def initWidget(widget):

    # this resets the text to "" so we know we've never
    # received anything yet from the other theme
    name = karamba.getPrettyThemeName(widget)
    print "2.py name: ", name
    karamba.setIncomingData(widget, name, "")

    karamba.redrawWidget(widget)
Ejemplo n.º 2
0
def initWidget(widget):

    # this resets the text to "" so we know we've never
    # received anything yet from the other theme
    name = karamba.getPrettyThemeName(widget)
    print "2.py name: ", name
    karamba.setIncomingData(widget, name, "")

    karamba.redrawWidget(widget)
Ejemplo n.º 3
0
def widgetClicked(widget, x, y, button):

    # do as you wish, but this is a good way:
    # compact your stuff with repr() it can cope
    # with pretty much any basic types - dictionaries, lists -
    # and then use eval() at the other end.

    global sequence_num
    sequence_num += 1

    vars = (sequence_num, x, y, button)
    message = repr(vars)
    karamba.setIncomingData(widget, "2", message)
Ejemplo n.º 4
0
def widgetClicked(widget, x, y, button):

    # do as you wish, but this is a good way:
    # compact your stuff with repr() it can cope
    # with pretty much any basic types - dictionaries, lists -
    # and then use eval() at the other end.

    global sequence_num
    sequence_num += 1

    vars = (sequence_num, x, y, button)
    message = repr(vars)
    karamba.setIncomingData(widget, "2", message)