comparison mamba/habitats/editor.py @ 237:9498b259c248

compress layout a tad more
author Neil Muller <drnlmuller@gmail.com>
date Wed, 14 Sep 2011 23:36:03 +0200
parents 09247e08aeda
children f0c14d9abd84
comparison
equal deleted inserted replaced
236:09247e08aeda 237:9498b259c248
111 tile_button.add_callback('clicked', self.change_tool, 111 tile_button.add_callback('clicked', self.change_tool,
112 tile_char, text) 112 tile_char, text)
113 self.container.add(tile_button) 113 self.container.add(tile_button)
114 button_height += \ 114 button_height += \
115 tile_button.surface.get_height() + button_padding 115 tile_button.surface.get_height() + button_padding
116 button_height += 10 116 button_height += 2
117 117
118 mode_button = TextButton((button_left, button_height), 118 mode_button = TextButton((button_left, button_height),
119 change_mode_text) 119 change_mode_text)
120 mode_button.add_callback('clicked', self.change_toolbar) 120 mode_button.add_callback('clicked', self.change_toolbar)
121 self.container.add(mode_button) 121 self.container.add(mode_button)
122 button_height += mode_button.surface.get_height() + button_padding 122 button_height += mode_button.surface.get_height() + button_padding
123 button_height += 10 123 button_height += 2
124 124
125 save_button = TextButton((button_left, button_height), "Save Level") 125 save_button = TextButton((button_left, button_height), "Save Level")
126 save_button.add_callback('clicked', self.save) 126 save_button.add_callback('clicked', self.save)
127 self.container.add(save_button) 127 self.container.add(save_button)
128 128