Tkinter and Rotation

I am developing an Image Editor using Python and Tkinter and aiming to implement a rotatable textbox feature. While this may appear to be a straightforward task, Tkinter does not natively support widget rotation. The common workaround involves converting the widget into an image, rotating it using the Python Imaging Library (PIL). However, this approach significantly reduces the widget’s functionality for the users. This approach is also bad because of the unnecessary complexity it adds to what should be a simple task. I think it would be worthwhile to add native support for widget rotation.

1 Like

This requires rotation being implemented in the underlying library tcl/tk. I am not sure if this is the case, I suspect the answer is no. So that is where you would need to make a feature request for native support first.

Do you know where I could make a feature request to the underlying library

This link canvas manual page - Tk Built-In Commands suggests rotation of canvas items might be possible with Tcl/Tk 9.0, but I suppose that’s not yet usable in python tkinter.