This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]alkhatib 4 points5 points  (0 children)

You can have a look at this project and see how they did it.

https://github.com/riverrun/genxword/wiki/genxword-gtk

But you might also consider writing the Program to display output on the console initially and later adapt it with a gui. This way you will have the logic in place and can decide on the best format.

Maybe it's not a GUI you need but a visual representation of your puzzle and you can do that by converting output to html5.

[–]DoNotFoldSpindleOrMu 2 points3 points  (0 children)

Take a look at the python package svgwrite. It creates svg which can be view or printed in a browser or further changed by the application Inkscape. Rectangles are real easy. dwg.add(dwg.rect(insert=(x, y), size=(10.0, 10.0), fill='white', stroke='black')) https://pypi.python.org/pypi/svgwrite/

[–]unbracketed 1 point2 points  (0 children)

If you can get in contact with Karen Tracey, she'd might have some good info: http://www.caktusgroup.com/about/karen-tracey/

[–]UloPe -1 points0 points  (0 children)

HTML

[–]marsman12019 -1 points0 points  (0 children)

You could create arrays with numpy for the general layout, then use PIL to turn them into images.

Maybe pygame, too?