code: def on_bottom_align_toggled(self, chk):
          
          v = chk.get_active()
          self.settings.general.set_int('window-valignment', ALIGN_BOTTOM if v else ALIGN_TOP)
docs: set the vertical alignment setting.