[_("Motors off"),("M84"),None,(250,250,250),0,_("Switch all motors off")],
[_("Check temp"),("M105"),(2,5),(225,200,200),(1,1),_("Check current hotend temperature")],
[_("Extrude"),("extrude"),(4,0),(225,200,200),(1,2),_("Advance extruder by set length")],
[_("Reverse"),("reverse"),(5,0),(225,200,200),(1,2),_("Reverse extruder by set length")],
[_("Motors off"),("M84"),None,(250,250,250),0,_("Switch all motors off")],
[_("Check temp"),("M105"),(2,5),(225,200,200),(1,1),_("Check current hotend temperature")],
[_("Extrude"),("extrude"),(4,0),(225,200,200),(1,2),_("Advance extruder by set length")],
[_("Reverse"),("reverse"),(5,0),(225,200,200),(1,2),_("Reverse extruder by set length")],
]
self.custombuttons=[]
self.btndict={}
...
...
@@ -137,12 +137,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
try:
self.custombuttons=customdict["btns"]
forninxrange(len(self.custombuttons)):
self.cbutton_save(n,self.custombuttons[n])
self.cbutton_save(n,self.custombuttons[n])
os.rename("custombtn.txt","custombtn.old")
rco=open("custombtn.txt","w")
rco=open("custombtn.txt","w")
rco.write(_("# I moved all your custom buttons into .pronsolerc.\n# Please don't add them here any more.\n# Backup of your old buttons is in custombtn.old\n"))
rco.close()
exceptIOError,x:
exceptIOError,x:
printstr(x)
else:
print_("Note!!! You have specified custom buttons in both custombtn.txt and .pronsolerc")
...
...
@@ -152,30 +152,30 @@ class PronterWindow(wx.Frame,pronsole.pronsole):