mhoffman/kmos — Issue #1: Warnings when starting the editor and difficulties setting lattice sites
Author: MaximeVdB
Created: 2012-01-18 14:04:13+00:00
State: open

Hey Max,

So I installed the latest version (779da73) and tried out the editor.
First, starting the editor, the following warnings are shown in the terminal:
-----------------------------------------------------------------------------
/usr/lib/pymodules/python2.6/gazpacho/loader/loader.py:496: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument
self._tooltips = gtk.Tooltips()

/home/maxime/.local/lib/python2.6/site-packages/kmos/kmc_editor.glade:???: DeprecationWarning: while loading glade file: Use the new widget gtk.Tooltip

/usr/lib/pymodules/python2.6/gazpacho/loader/loader.py:497: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument
self._tooltips.enable()

/home/maxime/.local/lib/python2.6/site-packages/kmos/kmc_editor.glade:???: DeprecationWarning: while loading glade file: Use the new widget gtk.Tooltip

/usr/lib/pymodules/python2.6/kiwi/ui/objectlist.py:906: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument
self._tooltips = gtk.Tooltips()

/home/maxime/.local/lib/python2.6/site-packages/kmos/kmc_editor.glade:???: DeprecationWarning: while loading glade file: Use the new widget gtk.Tooltip
-----------------------------------------------------------------------------

In the editor, something that I think is not working as it should (at least, on my computer (Ubuntu 10.04 Lucid Lynx)), is the depiction and definition of a lattice and its sites.

For example, when I add a lattice called Pt(111), give it a colour, there's a small white square appearing in the middle of the field, OK. When I click in the field, a window appears asking me a name and coordinates and default species (which concerns the sites, I guess), and when I give it a name and some coordinates like (0.5,0.5,0.5), nine white circles appear in 3x3-square arrangement centered around the point where I clicked.
Every time I do this, the following error is shown in the terminal (somethies its 'illegal attribute y' or 'z' insteead of 'x')
-----------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/kiwi/ui/proxy.py", line 214, in _on_widget__content_changed
ksetattr(model, attribute, value)
File "/usr/lib/pymodules/python2.6/kiwi/accessor.py", line 453, in ksetattr
setattr(model, data2, value)
File "/home/maxime/.local/lib/python2.6/site-packages/kmos/types.py", line 45, in __setattr__
% attrname)
AttributeError: Tried to set illegal attribute x
------------------------------------------------------------------------------

Hope this make sense to you;

greets,

Maxime