http://mcolxyzogp3cy4czf52oa2svu2vjge3otm3shxmtvwshyum47sis3iid.onion/code/qtools/file/qtools/widget/habit_tracker.py.html
_chain 174 for col in reversed(range(self.columns)): 175 units, chain = divmod(chain, (self.rows + 1) ** col) 176 if units: 177 x_pos = self.margin_x + col * 2 * block_size 178 for row in range(units): 179 y_pos = start_y - row * 2 * block_size 180 self.drawer.ctx.rectangle(x_pos, y_pos, block_size, block_size) 181 182 self.drawer.ctx.fill() 183 self.drawer.draw(offsetx=self.offset, width=self.length)