Thought it was about time I changed the name of this and formed a new
The good news:
OK, been furtling around with Edit a little more. If I edit ROX-Lib2 so
that the calls to 'set_tip()' have an extra blank argument, they seem to
work. I have added " ,'' " to the end of each list of arguments in the
calls in the OptionsBox.py file to 'set_tip()'.
I can now start Edit, click with the rh button to get a menu, and
successfully choose the 'options' item. This pops up the relevant dialogue
box, and I can now alter the chosen font and colours. Works fine! :-)
I now have in my Edit windows an impressive font of my choice, over a natty
orange background. Design scheme worth of one of those endless 'design your
interior decor programs' on the BBC! ;->
Curiously, when I look at the GTK documentation, this says that the gtk
proceedure (in 'C' examples) to set_tips has *four* arguments, including a
'private' text. I assume this means that somewhere between ROX-Lib2 and
gtk, thos extra 'private' one is being added in somehow...
When I try to load or save a file via drag and drop, things go wrong.
When loading a file via dnd: The file loads, but errors are thrown up, and
the name of the file as shown on the top of the editor's window is
"<Untitled>". When you try to save, the name offerred is "TextFile"
irrespective of any name the loaded file had.
When saving a file, the process will fail if you just give the leafname
(e.d. call it "Fred.txt" and then try a dnd). No file will be created or
saved to. However if you give the file a full name (e.g.
"/home/jim/Fred.txt") it saves just fine. I assume that something is
mangling the filenames as they are being passed around.
When saving using a plain leafname via dnd, the ROX errors listed are of
traceback (most recent call last):
line 285, in drag_begin
AttributeError: 'gtk.eventbox' object has no attribute
The errors listed for loading via dnd are essentially the mirror image of
the above, but the process actually loads in the data from the file,
despite getting into a guddle about the name.
When the save has failed, it also provokes a desktop error window (from X?)
XdndDirectSave0 target provided but atom XdndDirectSave0 (type
text/plain) did not contain a leafname.
This is odd, since the leafname seems OK, but the full path seems to be
Above error listings may contain typos as I am having to write them down,
the type them into my email.
Anyway, some progress - even though I am still stumbling through the forest
in the dark! :->
Armstrong Audio http://www.st-and.demon.co.uk/Audio/armstrong.html
Barbirolli Soc. http://www.st-and.demon.co.uk/JBSoc/JBSoc.html