<div dir="ltr">Hello!<div><br></div><div>I am new to cairo and I'm using wxcairo to draw custom widgets in my wxPython app.</div><div><br></div><div>I am making a Game of Life simulation. I want to draw a 2D grid of squares. (I'm interested just in the wireframe of the grid now: The cells I've drawn successfully.)</div>
<div><br></div><div>Can you suggest what would be a good way to draw the grid?</div><div><br></div><div>What I figured, as a total noob, is to make a `Pattern`, let's says with a size of (5, 5), assuming that's the cell size I'm using for my grid, and then draw two grey lines, one from (0, 0) to (0, 4) and one from (0, 0) to (4, 0).</div>
<div><br></div><div>Then I use the needed extend style to draw this on my actual context.</div><div><br></div><div>Is this a good way?</div><div><br></div><div>Question: How will I set the position of the grid?</div><div>
<br></div><div>Also: What class of `Pattern` should I use for it?</div><div><br></div><div>Thanks,</div><div>Ram Rachum.</div><div><br></div><div>(P.S. Please put me in the `to` field if you send a message on this thread.)</div>
</div>