diff options
Diffstat (limited to 'Moonwidgets.py')
-rw-r--r-- | Moonwidgets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Moonwidgets.py b/Moonwidgets.py index f50a262..05e38cc 100644 --- a/Moonwidgets.py +++ b/Moonwidgets.py @@ -621,9 +621,9 @@ class MatrizMoonCalendar(Gtk.EventBox): def repaint(self, widget= None, event= None): if not self.fixes: return - x,y,w,h= self.get_allocation() - anchoboton = w/len(self.fixes[0]) - altoboton = h/len(self.fixes) + rect = self.get_allocation() + anchoboton = rect.width/len(self.fixes[0]) + altoboton = rect.height/len(self.fixes) tamanioboton = min( [anchoboton,altoboton] ) if self.tamanioboton != tamanioboton: self.tamanioboton = tamanioboton |