#123 In the Tools dialog, New and Delete buttons do not work.

open
nobody
Tools (28)
5
2010-05-31
2010-05-31
Alex
No

Hello,

While trying to customize the plugin for compiling Sketch files (*.sk), I have noticed that the New and Delete buttons do not work at all.

I have fixed the New button (sort of...) by changing this on dialog.py:129:
before: self._entry_accel.set_text(tool.accelerator)
after: self._entry_accel.set_text(str(tool.accelerator))

The problem is that tool.accelerator has the value ['.tex'], which I don't think it is correct.

When pressing Delete in the same dialog box, the traceback is:
...
File "/home/alex/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/preferences/dialog.py", line 616, in _on_tools_changed
self.__load_tools()
File "/home/alex/.gnome2/gedit/plugins/GeditLaTeXPlugin/src/preferences/dialog.py", line 624, in __load_tools
store, iter = self._view_tool.get_selection().get_selected()
AttributeError: 'NoneType' object has no attribute 'get_selected'

Also, I have managed to create a new action for compiling Sketch files. The new tool is displayed in the menu, it is activated
when I open a document which ends in ".sk", but when selecting it, the console displays this:

2010-05-31 21:34:25,118 DEBUG ToolAction - activate: Tool{Sketch -> PDF}
2010-05-31 21:34:25,119 ERROR ToolAction - No active editor

On the GUI side, nothing happens when selecting this tool. It would be nice to catch the exceptions and give a message box when something goes wrong.

Alex

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks