diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-17 20:35:44 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-17 20:35:44 -0600 |
commit | fabc78f5db572d63d3225cafd97884825e4e7f04 (patch) | |
tree | 2be41a725f333a49ee26748c3ba371a6c74a2287 | |
parent | 185a29698e5d3175cecbd779103e1a9838ff0ecc (diff) |
call it button_new instead of new
"new" is sometimes a reserved keyword and it would be nice to not use
that name.
-rw-r--r-- | pokemontools/map_editor.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pokemontools/map_editor.py b/pokemontools/map_editor.py index c30fcd8..78edee0 100644 --- a/pokemontools/map_editor.py +++ b/pokemontools/map_editor.py @@ -149,10 +149,10 @@ class Application(Frame): self.picker_frame = Frame(self) self.picker_frame.grid(row=1, column=1) - self.new = Button(self.button_frame) - self.new["text"] = "New" - self.new["command"] = self.new_map - self.new.grid(row=0, column=0, padx=2) + self.button_new = Button(self.button_frame) + self.button_new["text"] = "New" + self.button_new["command"] = self.new_map + self.button_new.grid(row=0, column=0, padx=2) self.open = Button(self.button_frame) self.open["text"] = "Open" |