I've made the --rebase but we've another error when is open brush editor
and you pick on brush:
Traceback (most recent call last):
File "/home/jag/installs/mypaint-git-master/gui/history.py", line 68,
_history_button_clicked_cb(self=<BrushHistoryView object at 0x3cd2af0
(gui+history+BrushHistoryView at 0x3cc7980)>, button=<Button object at
0x4108140 (GtkButton at 0x3d306b0)>, i=3)
brush = bm.history[i]
bm.select_brush(brush)
self.button_clicked()
variables: {'bm.select_brush': ('local', <bound method
BrushManager.select_brush of <gui.brushmanager.BrushManager object at
0x354e5d0>>), 'brush': ('local', <ManagedBrush u'history_3' p=b003>)}
File "/home/jag/installs/mypaint-git-master/gui/brushmanager.py", line
678, select_brush(self=<gui.brushmanager.BrushManager object>,
brush=<ManagedBrush None (settings not loaded yet)>)
# brush, amongst other things
self.brush_selected(brush, brushinfo)
variables: {'self.brush_selected': ('local', <MethodWithObservers
brush_selected on <gui.brushmanager.BrushManager object at 0x354e5d0>>),
'brush': ('local', <ManagedBrush None (settings not loaded yet)>),
'brushinfo': ('local', <lib.brush.BrushInfo instance at 0x3579908>)}
File "/home/jag/installs/mypaint-git-master/lib/observable.py", line 279,
__call__(self=<MethodWithObservers brush_selected on
<gui.brushmanager.BrushManager object>>, *args=(<ManagedBrush None
(settings not loaded yet)>, <lib.brush.BrushInfo instance>), **kwargs={})
try:
observer(observed, *args, **kwargs)
except BoundObserverMethod._ReferenceError, ex:
variables: {'observed': ('local', <gui.brushmanager.BrushManager object
at 0x354e5d0>), 'args': ('local', (<ManagedBrush None (settings not loaded
yet)>, <lib.brush.BrushInfo instance at 0x3579908>)), 'observer': ('local',
<BoundObserverMethod 'brush_selected_cb' of <BrushEditorWindow object at
0x41156e0 (uninitialized at 0x0)>>), 'kwargs': ('local', {})}
File "/home/jag/installs/mypaint-git-master/lib/observable.py", line 433,
__call__(self=<BoundObserverMethod 'brush_selected_cb' of <Bru...ndow
object at 0x41156e0 (uninitialized at 0x0)>>,
observed=<gui.brushmanager.BrushManager object>, *args=(<ManagedBrush None
(settings not loaded yet)>, <lib.brush.BrushInfo instance>), **kwargs={})
raise self._ReferenceError
self._observer_func(observer, observed, *args, **kwargs)
del observer
variables: {'observed': ('local', <gui.brushmanager.BrushManager object
at 0x354e5d0>), 'args': ('local', (<ManagedBrush None (settings not loaded
yet)>, <lib.brush.BrushInfo instance at 0x3579908>)),
'self._observer_func': ('local', <function brush_selected_cb at
0x30355f0>), 'observer': ('local', <BrushEditorWindow object at 0x41156e0
(gui+brusheditor+BrushEditorWindow at 0x43466e0)>), 'kwargs': ('local', {})}
File "/home/jag/installs/mypaint-git-master/gui/brusheditor.py", line
552, brush_selected_cb(self=<BrushEditorWindow object at 0x41156e0
(gui+brusheditor+BrushEditorWindow at 0x43466e0)>,
bm=<gui.brushmanager.BrushManager object>, managed_brush=<ManagedBrush None
(settings not loaded yet)>, brushinfo=<lib.brush.BrushInfo instance>)
"""Update GUI when a new brush is selected via the brush
manager"""
self._update_brush_header()
self._update_setting_ui(expanders=True)
variables: {'self._update_brush_header': ('local', <bound method
BrushEditorWindow._update_brush_header of <BrushEditorWindow object at
0x41156e0 (gui+brusheditor+BrushEditorWindow at 0x43466e0)>>)}
File "/home/jag/installs/mypaint-git-master/gui/brusheditor.py", line
563, _update_brush_header(self=<BrushEditorWindow object at 0x41156e0
(gui+brusheditor+BrushEditorWindow at 0x43466e0)>)
if mb:
name = brush_name_to_display(mb.name)
else:
variables: {'brush_name_to_display': ('global', <function
brush_name_to_display at 0x3026b18>), 'name': (None, []), 'mb.name':
('local', <ManagedBrush None (settings not loaded yet)>)}
File "/home/jag/installs/mypaint-git-master/gui/brusheditor.py", line 40,
brush_name_to_display(name=None)
def brush_name_to_display(name):
return name.replace("_", " ")
variables: {'name': ('local', None)}
AttributeError: 'NoneType' object has no attribute 'replace'
" ... "
J. Americo Gobbo [Painter and Illustrator]
Website <http://americogobbo.com.br> | Blog<http://americogobbo.blogspot.com>|
Flickr <http://flickr.com/rabisco> | Twitter <http://twitter.com/rabisco> |
Facebook <http://www.facebook.com/americogobbo>
On Sat, Mar 15, 2014 at 3:31 PM, Andrew Chadwick <[email protected]>wrote:
> Good spot. Should be fixed in
> https://gitorious.org/mypaint/mypaint/commit/607ca81 - I'm still
> migrating some parts of the code to the new layers stack
> implementation, as you'll see from various deprecation warnings.
>
> On 15 March 2014 13:20, José Américo Gobbo <[email protected]> wrote:
> > Hi all,
> > I've some problems to edit the brush icons, when you try edit an icon
> > MyPaint has this problem:
> >
> > Exception while analyzing the exception.
> > Traceback (most recent call last):
> > File "/home/jag/installs/mypaint-git-master/gui/drawwindow.py", line
> 396,
> > in toggle_window_cb
> > window = self.app.get_subwindow(action_name)
> > File "/home/jag/installs/mypaint-git-master/gui/application.py", line
> 757,
> > in get_subwindow
> > window = window_class()
> > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py",
> line
> > 44, in __init__
> > self._editor = BrushIconEditor()
> > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py",
> line
> > 102, in __init__
> > self._init_widgets()
> > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py",
> line
> > 191, in _init_widgets
> > self._set_preview_pixbuf(preview)
> > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py",
> line
> > 333, in _set_preview_pixbuf
> > self._tdw.doc.load_from_pixbuf(pixbuf)
> > File "/home/jag/installs/mypaint-git-master/lib/document.py", line
> 853, in
> > load_from_pixbuf
> > self.clear()
> > File "/home/jag/installs/mypaint-git-master/lib/document.py", line
> 399, in
> > clear
> > self._layers.clear()
> > File "/home/jag/installs/mypaint-git-master/lib/layer.py", line 1099,
> in
> > clear
> > self.set_background(self._default_background)
> > File "/home/jag/installs/mypaint-git-master/lib/layer.py", line 1406,
> in
> > set_background
> > self._doc.invalidate_all()
> > File "/home/jag/installs/mypaint-git-master/lib/document.py", line
> 656, in
> > invalidate_all
> > f(0, 0, 0, 0)
> > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py",
> line
> > 217, in _preview_modified_cb
> > self._update_widgets()
> > File "/home/jag/installs/mypaint-git-master/gui/brushiconeditor.py",
> line
> > 310, in _update_widgets
> > self._model.layer.locked = not (valid and editing)
> > File "/home/jag/installs/mypaint-git-master/lib/document.py", line
> 170, in
> > layer
> > return self._layers.current
> > File "/home/jag/installs/mypaint-git-master/lib/layer.py", line 1369,
> in
> > get_current
> > assert layer is not None
> > AssertionError
> >
> > _______________________________________________
> > Mypaint-discuss mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/mypaint-discuss
> >
>
>
>
> --
> Andrew Chadwick
>
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss