Golly GUI Interface for CLI scripts.

For scripts to aid with computation or simulation in cellular automata.
Post Reply
User avatar
Scorbie
Posts: 1693
Joined: December 7th, 2013, 1:05 am

Golly GUI Interface for CLI scripts.

Post by Scorbie » January 18th, 2016, 10:23 am

I've been trying to implement an interface that allows the user to do almost everything as in Golly, except for some that are customized for specific tasks.
For instance, with Bellman.py, you will be able to load Bellman input files directly from the file, edit the pattern as you do it in Golly, and save it back to the file just as you save any file.
Here's my work halfway done: https://github.com/Scorbie/gollygui
Currently it doesn't do much... It's emulating Golly behavior inside of Golly using the Golly API.
This may seem worthless, but all events are customizable, so you can make it do whatever you want by defining a custom function and assign the keybinding to it.
You can run gollygui.py for the moment and get the idea... You can think that every key/mouse binding can be customized.
I'd love to hear feedbacks (about overall design, structure... I'm skeptical of using docstrings in the Golly Help page...)
Thank you in advance.

Currently on the TODO list:
  • Fix a bug on the paste location and paste mode thing. Fixed!
  • Add tab management by name (as in fusefinder) Done!
  • Add bitmap <-> Golly pattern conversion.
  • Add getstrings() and getbool() with tkinter (like the one on Catgl) Done!
Last edited by Scorbie on January 23rd, 2016, 6:35 am, edited 4 times in total.

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Golly GUI Interface for CLI scripts.

Post by Saka » January 19th, 2016, 6:46 am

Man.. I really wished I worked out Bellman...

User avatar
Scorbie
Posts: 1693
Joined: December 7th, 2013, 1:05 am

Re: Golly GUI Interface for CLI scripts.

Post by Scorbie » January 24th, 2016, 7:11 pm

Okay, I have finished the original project but sadly I don't have time to document it and demonstrate it with, for example, Bellman parser.
And I decided not to develop this any further because golly_icon_importer/exporter.py on the Golly scripts directory seems to do what I was trying to do well enough. (Except for interactive fromtends like lifesrc)
Still, I think dialog.py and layers.py seems to be useful for other projects. When you need getstrings() or getbool() or if you want to access layers by name, check them out.

Post Reply