From 9625543dc3acf001ef422566b696928467e11e80 Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Thu, 10 Nov 2016 16:19:55 +0100 Subject: [PATCH] canvas/toolgrid: Use correct division operator --- Orange/canvas/gui/toolgrid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/canvas/gui/toolgrid.py b/Orange/canvas/gui/toolgrid.py index f6309b10888..a8714f9596e 100644 --- a/Orange/canvas/gui/toolgrid.py +++ b/Orange/canvas/gui/toolgrid.py @@ -309,7 +309,7 @@ def __insertActionButton(self, index, action): self.__shiftGrid(index, 1) button = self.createButtonForAction(action) - row = index / self.__columns + row = index // self.__columns column = index % self.__columns self.layout().addWidget(