Hi guys I am looking to create the following as shown below. Anybody able to give me a hand as im really struggling to make the rectangles different lengths.
I don't have a lot of time, but here is a simple example to start you, using Tkinter. The other GUI toolkits, WxPython and QT, would be similar. [CODE]from Tkinter import * root = Tk() root.title('Rectangle Test') canvas = Canvas(root, width =300, height=300) ## top_left_x, top_left_y, bottom_right_x, bottom_right_y points_list = … Read More
The middle rectangle, be it red or white is centered, so if you have a 200x200 canvas, the middle would be 100. You can then move left or right, calculating the end position of the first red square for the rows with 4 red squares; end position=middle - (1.5 white … Read More
[QUOTE=Blackberryy;1410683]Anybodyy? really need help with this[/QUOTE] Post you code for drawing a single rectangle, the rest will be easy. Read More
Edited by pyTony: n/a
Edited by vegaseat: n/a