From 3bf613acb243688e22ea7aa71c72a94ae1540f85 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 25 Feb 2013 13:56:03 +0000 Subject: turns out that just removing the separators is enough --- (limited to 'abacus_window.py') diff --git a/abacus_window.py b/abacus_window.py index f6d400d..9f44f99 100644 --- a/abacus_window.py +++ b/abacus_window.py @@ -791,20 +791,23 @@ class Abacus(): self.chinese = Suanpan(self, self.bead_colors) self.mode = self.chinese self.mode.show() + self._configure_cb(None) def _configure_cb(self, event): self.width = Gdk.Screen.width() self.height = Gdk.Screen.height() - GRID_CELL_SIZE if self.width > self.height: self.scale = 1.33 * Gdk.Screen.height() / 900.0 - if Gdk.Screen.width() / 14 >= style.GRID_CELL_SIZE: - self.activity.hex.show() - self.activity.binary.show() else: - self.scale = 1.33 * Gdk.Screen.width() / 1200.0 - if Gdk.Screen.width() / 14 < style.GRID_CELL_SIZE: - self.activity.hex.hide() - self.activity.binary.hide() + self.scale = 1.33 * Gdk.Screen.width() / 1200.0 + if Gdk.Screen.width() / 14 < style.GRID_CELL_SIZE: + for sep in self.activity.sep: + sep.hide() + sep.props.draw = False + else: + for sep in self.activity.sep: + sep.show() + sep.props.draw = True self.canvas.set_size_request(Gdk.Screen.width(), Gdk.Screen.height()) self.mode.hide() self.mode.show(reset=True) -- cgit v0.9.1