comparison tools/area_editor.py @ 330:6e32494b9f9e

Move quit button away from other stuff
author Neil Muller <drnlmuller@gmail.com>
date Fri, 06 Sep 2013 02:39:56 +0200
parents 78bc8c873f7f
children 9589e1db4433
comparison
equal deleted inserted replaced
329:6376730611f4 330:6e32494b9f9e
763 save_but.rect = BUTTON_RECT.copy() 763 save_but.rect = BUTTON_RECT.copy()
764 save_but.rect.move_ip(MENU_LEFT, y) 764 save_but.rect.move_ip(MENU_LEFT, y)
765 widgets.append(save_but) 765 widgets.append(save_but)
766 y += MENU_BUTTON_HEIGHT + MENU_PAD 766 y += MENU_BUTTON_HEIGHT + MENU_PAD
767 767
768 y += MENU_PAD 768 y = SCREEN[1] - MENU_BUTTON_HEIGHT - MENU_PAD
769 quit_but = Button('Quit', action=self.quit) 769 quit_but = Button('Quit', action=self.quit)
770 quit_but.rect = BUTTON_RECT.copy() 770 quit_but.rect = BUTTON_RECT.copy()
771 quit_but.rect.move_ip(MENU_LEFT, y) 771 quit_but.rect.move_ip(MENU_LEFT, y)
772 widgets.append(quit_but) 772 widgets.append(quit_but)
773 773
834 save_but.rect = BUTTON_RECT.copy() 834 save_but.rect = BUTTON_RECT.copy()
835 save_but.rect.move_ip(MENU_LEFT, y) 835 save_but.rect.move_ip(MENU_LEFT, y)
836 widgets.append(save_but) 836 widgets.append(save_but)
837 y += MENU_BUTTON_HEIGHT + MENU_PAD 837 y += MENU_BUTTON_HEIGHT + MENU_PAD
838 838
839 y += MENU_PAD 839 y = SCREEN[1] - MENU_BUTTON_HEIGHT - MENU_PAD
840 quit_but = Button('Quit', action=self.quit) 840 quit_but = Button('Quit', action=self.quit)
841 quit_but.rect = BUTTON_RECT.copy() 841 quit_but.rect = BUTTON_RECT.copy()
842 quit_but.rect.move_ip(MENU_LEFT, y) 842 quit_but.rect.move_ip(MENU_LEFT, y)
843 widgets.append(quit_but) 843 widgets.append(quit_but)
844 844