PyI7 -- a Python/Tkinter IDE for Inform 7 on Linux
- You get a text editor window with your story in it. You can edit it. It has undo/redo, and syntax highlighting.
- You can invoke the Inform 7 compiler chain to build a game file.
- You can invoke your favourite interpreter to playtest it.
- You can invoke a HTML browser to read the Inform documentation, index files produced by the compiler, and Inform extensions.
- You can even run it as a command-line program if you want to, without all that GUI stuff getting in the way. Woo hoo!
- There's no support for the skein or transcript.
- There's no "Replay" function.
To install and run things properly, you will need the following already installed:
Python >= 2.5 with the Tkinter package using Tk >= 8.4.
The Linux Inform 7 distribution. The latest version can be found here:
A web browser capable of displaying frames. Tested with Firefox, but others should work OK.
Optional, but nice: some decent Z-code and GLULX interpreters. The default is to use the dumb versions distributed with Inform 7 in an xterm. Yuck. Instead, I recommend gargoyle for both:
- Why does this exist? Have you not heard of gnome-inform7?
- Yes. I tried to install it, but gave up after the 83rd GNOME package dependency. So, inspired by Adam Thornton's comments at the end of his 'i7' shell script, I started this minimal IDE.
- What's the status of this release?
- This is a beta release. It's nowhere near finished yet, and I'm only releasing it to get some feedback about what's good, what's not, and what features people would like (and hopefully some code implementing them too :-).
- Why Python?
- It's fun to hack. And it's really _really_ fast to get something together that works. And most importantly, it's the most appropriate language for interfacing to Natural Inform ("We are the knights who say..." :-)
- Ewww! Why did you use sucky Tkinter widgets, and not something like wxPython?
- Firstly, the emphasis is on 'minimal' -- I wanted the minimum of package dependencies. As it stands at the moment, this package should run straight out of the box on a recent Linux distro without having to install anything except the Inform 7 binaries. Secondly, er... nope, that's it.
- How do I change the font/window size/other thing I don't like the look of?
- I'm in the process of naming widgets so that you can tweak ~/.Xdefaults to customize things, but it's not finished. For now, look in tktools/options.py and fiddle with settings in there.
- External HTML browser? But how are links back into the game source text going to work?
- They aren't. But they do link to an HTMLized copy of it, at the right place.
- This looks nothing like the cool Windoze or Mac versions! Why not?
- Realistically, Tkinter is never going to look cool. If you want cool, you're better off waiting for gnome-inform7 to catch up with those platforms.
- I can't get it to work on Windoze or Mac. Should it?
- Nope, it probably won't. I haven't tried it, and don't intend to. But why are you even bothering if you have the zillion-times-better interface for those systems?
Building and installing
To build the package, type:
python setup.py build
To install it, type:
python setup.py install
There's also a Makefile supplied, so that you can just type 'make' and 'make install' in the usual manner.
The distribution consists of:
scripts/pyi7 The main program. You run it. inform7 Package that knows about Inform 7. tktools Package of generic Tkinter GUI tools. examples Bunch of standard I7 examples.
If you're thinking of adding some GUI functionality, try to add the general case to the tktools package first, and then an implementation of it in the inform7 package. That way, tktools is more useful for building different applications.
I welcome all bug reports and suggestions. Code contributions are even more welcome (see the TODO file). I am Glenn Hutchings <email@example.com>.