From: Douglas S. Blank <dblank@br...> - 2005-01-11 17:32:10
Thanks, David! I've updated the wiki page
http://emergent.brynmawr.edu/emergent/Gramps-tk (and, in fact, put some more
instructions and developer hints). If you have gramps-tk-0.03 or higher, and
you aren't editing code, then you can run:
in the gramps-tk directory, and it will download the latest version of
will copy the new gramps-tk code into gramps2/src and start gramps-tk.
After looking at ncurses for a bit, I would vote that we put that on the
backburner for now. It only runs on Linux/Unix so it would only be useful for
those that could run the tk version anyway. But, I think it would be trivial
now to add other GUIs to GRAMPS.
All of the Tk-specific code is in two files:
The first is the main program, and the second is a library that can be loaded
by the rest of GRAMPS. I image that one would "import GrampsGui" and the
correct versions of dialog boxes, etc, would be available. To create a new GUI
(say, a web interface, wxPython, Qt, or ncurses) one only need to replicate
those two files (Of course, those two files aren't finished! Just getting
There are a set of files that have been "spooned" (to quote Steve Hall). These
files end in *Tk.py and are identical to their like-named GRAMPS files, except
where they do something gtk or gnome related. But, these files will eventually
be merged back with the main gramps code. In fact, thanks to Don and Alex,
every few days that go by the spooned files decrease in number. Also, I think
that gramps-tk won't need many of the spooned files. For example, I think we
can by-pass many of the intermediary views and models, and talk directly to
I encourage you to try out the interface so far. If you have Python, Tkinter,
Tix, and a GED file to import, you can actually view the people and families.
David Handy <david@...> said:
>> Even though I had the Python Tix package installed, it would not work:
>> Python 2.3.4 (#2, Dec 3 2004, 13:53:17)
>> [GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> >>> import Tix
>>>>> >>> root = Tix.Tk()
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in ?
>> File "/usr/lib/python2.3/lib-tk/Tix.py", line 210, in __init__
>> self.tk.eval('package require Tix')
>> _tkinter.TclError: can't find package Tix
>> To fix this I had to install Tix separately:
>> apt-get install tix
>> I don't know why Debian didn't set up their dependencies correctly for this.
>> Anyway, I'm posting this just in case someone else hits the same problem.
>> After I did this, I was able to run gramps-tk and see the main ui. There
>> were other problems, but that is another post...
>> David H.
gramps-tk mailing list
Douglas S. Blank, Assistant Professor
Bryn Mawr College, Computer Science Program
101 North Merion Ave, Park Science Building
Bryn Mawr, PA 19010 dangermouse.brynmawr.edu