I am using wxPython’s PaintDC to draw a bounding box to allow users to move/rotate shapes. I want to draw a rotated rectangle on the dc for this purpose, but I haven’t been able to come across any information on how to do this.
Any ideas?
I am using wxPython’s PaintDC to draw a bounding box to allow users to move/rotate shapes. I want to draw a rotated rectangle on the dc for this purpose, but I haven’t been able to come across any information on how to do this.
Any ideas?
Hi, Noah
How about wx.DC.DrawPolygon
? I think it seems to best suit your purpose:
(wx.DC — wxPython Phoenix 4.1.1 documentation)
But I have never tested this …