[_("Motors off"),("M84"),None,(250,250,250),0,_("Switch all motors off")],
[_("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")],
[_("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")],
[_("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")],
[_("Reverse"),("reverse"),(5,0),(225,200,200),(1,2),_("Reverse extruder by set length")],
]
]
self.custombuttons=[]
self.custombuttons=[]
self.btndict={}
self.btndict={}
...
@@ -137,12 +137,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -137,12 +137,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
try:
try:
self.custombuttons=customdict["btns"]
self.custombuttons=customdict["btns"]
forninxrange(len(self.custombuttons)):
forninxrange(len(self.custombuttons)):
self.cbutton_save(n,self.custombuttons[n])
self.cbutton_save(n,self.custombuttons[n])
os.rename("custombtn.txt","custombtn.old")
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.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()
rco.close()
exceptIOError,x:
exceptIOError,x:
printstr(x)
printstr(x)
else:
else:
print_("Note!!! You have specified custom buttons in both custombtn.txt and .pronsolerc")
print_("Note!!! You have specified custom buttons in both custombtn.txt and .pronsolerc")
...
@@ -152,30 +152,30 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -152,30 +152,30 @@ class PronterWindow(wx.Frame,pronsole.pronsole):