Reputation: 1077
So I was working with using Tkinter Cursors and I found this list of all the cursors it offers: https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/cursors.html
Now I was interested in these:
These cursors are the ones that show up when you are resizing a window - but there are a few missing. When you resize a window in both directions (width & height), you get a 45 deg rotated arrow cursor which isn't part of this list...
So, does Tkinter offer that cursor? is there a way I can add that cursor and use it?
Upvotes: 0
Views: 612
Reputation: 8037
The answer is yes:
import tkinter as tk
window = tk.Tk()
tk.Label(window, bg='red', width=50, height=20,cursor='size_ne_sw').pack(expand=True, fill='both')
window.mainloop()
see details
Upvotes: 1