[Sugar-devel] [PATCH 18/21 sugar-toolkit] ToolInvoker._get_alignments: fix missing self parameter

Simon Schampijer simon at schampijer.de
Fri Oct 29 07:01:54 EDT 2010


On 10/15/2010 11:01 PM, Sascha Silbe wrote:
> Caught by pylint. I wonder if we need this piece of code as nobody every
> triggered it.

Hmm, or triggered without knowing. Let's just fix it.

> Signed-off-by: Sascha Silbe<sascha-pgp at silbe.org>
>
> diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py
> index 81540e3..c5deecd 100644
> --- a/src/sugar/graphics/palettewindow.py
> +++ b/src/sugar/graphics/palettewindow.py
> @@ -853,7 +853,7 @@ class ToolInvoker(WidgetInvoker):
>       def _get_alignments(self):
>           parent = self._widget.get_parent()
>           if parent is None:
> -            return WidgetInvoker._get_alignments()
> +            return WidgetInvoker._get_alignments(self)
>
>           if parent.get_orientation() is gtk.ORIENTATION_HORIZONTAL:
>               return self.BOTTOM + self.TOP
> --
> 1.7.1
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



More information about the Sugar-devel mailing list