You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jade-gui/jade_gui/utils/gtk_helpers.py

7 lines
148 B
Python

def set_list_text(list, string):
n = list.get_n_items()
if n > 0:
list.splice(0, n, [string])
else:
list.append(string)