diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-12-18 20:20:09 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-12-18 20:20:09 -0600 |
commit | a07c92d3b38898568077da99ec05a82c69ffcc3c (patch) | |
tree | 44c5466fc998a132a358e319a01cd7c3dca954ed /pokemontools/map_editor.py | |
parent | a077e470b2b24fc00db75aad220cc381f602bb3e (diff) | |
parent | d8f4e687ebc49d4b135f0d8b7f10a643114a0d8a (diff) |
Merge branch 'master' into path-finding
Diffstat (limited to 'pokemontools/map_editor.py')
-rw-r--r-- | pokemontools/map_editor.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/pokemontools/map_editor.py b/pokemontools/map_editor.py index c30fcd8..43042cb 100644 --- a/pokemontools/map_editor.py +++ b/pokemontools/map_editor.py @@ -128,6 +128,7 @@ def get_constants(config=config): name, value = [s.strip() for s in line.split(' EQU ')] constants[name] = eval(value.split(';')[0].replace('$','0x').replace('%','0b')) config.constants = constants + return constants class Application(Frame): def __init__(self, master=None, config=config): @@ -149,10 +150,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" @@ -683,14 +684,6 @@ def macro_values(line, macro): values = values[1:] return values -def db_value(line): - macro = 'db' - return macro_values(line, macro) - -def db_values(line): - macro = 'db' - return macro_values(line, macro) - def asm_at_label(asm, label): label_def = label + ':' lines = asm.split('\n') |