Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Moonwidgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'Moonwidgets.py')
-rw-r--r--Moonwidgets.py6
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