Soweit ich es verstanden habe, werden die Cursor in der Datei cursorfont.h definiert. Warum also nicht diese Datei befragen? (sie befindet sich bei Ubuntu in /usr/include/X11/. Bei anderen Linux-Distis weiss ich's nicht. Bei Windows ... ach wen interessierts ):
Code: Alles auswählen
#!/usr/bin/env python
# -*- encoding: latin-1 -*-
import Tkinter as tk
def main():
f = file("/usr/include/X11/cursorfont.h", "r")
root = tk.Tk()
root.title("Tk cursors")
row = 1
column = 0
for line in f:
if line.startswith("#") and not "glyphs" in line:
cursor = line.split()[1].replace("XC_", "")
tk.Label(
root, text=cursor, cursor=cursor, relief="groove"
).grid(row=row, column=column, ipadx=5, ipady=5, sticky=tk.EW)
column += 1
if column % 5 == 0:
column = 0
row += 1
root.mainloop()
if __name__ == '__main__':
main()