Commit 8979ec88 authored by Guillaume Seguin's avatar Guillaume Seguin

Rename macroed to MacroEditor

parent f8b7a52c
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
import wx import wx
import re import re
class macroed(wx.Dialog): class MacroEditor(wx.Dialog):
"""Really simple editor to edit macro definitions""" """Really simple editor to edit macro definitions"""
def __init__(self, macro_name, definition, callback, gcode = False): def __init__(self, macro_name, definition, callback, gcode = False):
......
...@@ -379,7 +379,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -379,7 +379,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.cur_macro_name = macro_name self.cur_macro_name = macro_name
self.cur_macro_def = definition self.cur_macro_def = definition
self.end_macro() self.end_macro()
macroed(macro_name, old_macro_definition, cb) MacroEditor(macro_name, old_macro_definition, cb)
else: else:
pronsole.pronsole.start_macro(self, macro_name, old_macro_definition) pronsole.pronsole.start_macro(self, macro_name, old_macro_definition)
...@@ -460,7 +460,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -460,7 +460,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def do_editgcode(self, e = None): def do_editgcode(self, e = None):
if self.filename is not None: if self.filename is not None:
macroed(self.filename, self.f, self.doneediting, 1) MacroEditor(self.filename, self.f, self.doneediting, 1)
def new_macro(self, e = None): def new_macro(self, e = None):
dialog = wx.Dialog(self, -1, _("Enter macro name"), size = (260, 85)) dialog = wx.Dialog(self, -1, _("Enter macro name"), size = (260, 85))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment