Commit 786bf24f authored by Cyril Laguilhon-Debat's avatar Cyril Laguilhon-Debat

Moved "Clear" button to menu

parent 1e91e807
...@@ -239,6 +239,14 @@ msgstr " Quitter le programme" ...@@ -239,6 +239,14 @@ msgstr " Quitter le programme"
msgid "&File" msgid "&File"
msgstr "&Fichier" msgstr "&Fichier"
#: pronterface.py:284
msgid "Clear console"
msgstr "Effacer la console"
#: pronterface.py:284
msgid " Clear output console"
msgstr "Effacer le contenu de la console de sortie"
#: pronterface.py:285 #: pronterface.py:285
msgid "&Macros" msgid "&Macros"
msgstr "&Macros" msgstr "&Macros"
...@@ -363,10 +371,6 @@ msgstr "Pause" ...@@ -363,10 +371,6 @@ msgstr "Pause"
msgid "Send" msgid "Send"
msgstr "Envoyer" msgstr "Envoyer"
#: pronterface.py:462
msgid "Clear"
msgstr "Effacer"
#: pronterface.py:460 #: pronterface.py:460
#: pronterface.py:518 #: pronterface.py:518
msgid "mm/min" msgid "mm/min"
......
...@@ -281,6 +281,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -281,6 +281,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
m = wx.Menu() m = wx.Menu()
self.Bind(wx.EVT_MENU, self.loadfile, m.Append(-1,_("&Open..."),_(" Opens file"))) self.Bind(wx.EVT_MENU, self.loadfile, m.Append(-1,_("&Open..."),_(" Opens file")))
self.Bind(wx.EVT_MENU, self.do_editgcode, m.Append(-1,_("&Edit..."),_(" Edit open file"))) self.Bind(wx.EVT_MENU, self.do_editgcode, m.Append(-1,_("&Edit..."),_(" Edit open file")))
self.Bind(wx.EVT_MENU, self.clearOutput, m.Append(-1,_("Clear console"),_(" Clear output console")))
self.Bind(wx.EVT_MENU, self.OnExit, m.Append(wx.ID_EXIT,_("E&xit"),_(" Closes the Window"))) self.Bind(wx.EVT_MENU, self.OnExit, m.Append(wx.ID_EXIT,_("E&xit"),_(" Closes the Window")))
self.menustrip.Append(m,_("&File")) self.menustrip.Append(m,_("&File"))
...@@ -298,6 +299,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -298,6 +299,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.Bind(wx.EVT_MENU, lambda *e:SkeinforgeQuickEditDialog(self), m.Append(-1,_("SFACT Quick Settings"),_(" Quickly adjust SFACT settings for active profile"))) self.Bind(wx.EVT_MENU, lambda *e:SkeinforgeQuickEditDialog(self), m.Append(-1,_("SFACT Quick Settings"),_(" Quickly adjust SFACT settings for active profile")))
except: except:
pass pass
self.menustrip.Append(m,_("&Settings")) self.menustrip.Append(m,_("&Settings"))
self.update_macros_menu() self.update_macros_menu()
self.SetMenuBar(self.menustrip) self.SetMenuBar(self.menustrip)
...@@ -451,7 +453,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -451,7 +453,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.logbox.SetEditable(0) self.logbox.SetEditable(0)
lrs.Add(self.logbox) lrs.Add(self.logbox)
lbrs=wx.BoxSizer(wx.HORIZONTAL) lbrs=wx.BoxSizer(wx.HORIZONTAL)
self.commandbox=wx.TextCtrl(self.panel,size=(240,30),pos=(440,420),style = wx.TE_PROCESS_ENTER) self.commandbox=wx.TextCtrl(self.panel,size=(295,30),pos=(440,420),style = wx.TE_PROCESS_ENTER)
self.commandbox.Bind(wx.EVT_TEXT_ENTER,self.sendline) self.commandbox.Bind(wx.EVT_TEXT_ENTER,self.sendline)
#self.printerControls.append(self.commandbox) #self.printerControls.append(self.commandbox)
lbrs.Add(self.commandbox) lbrs.Add(self.commandbox)
...@@ -459,9 +461,6 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -459,9 +461,6 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.sendbtn.Bind(wx.EVT_BUTTON,self.sendline) self.sendbtn.Bind(wx.EVT_BUTTON,self.sendline)
#self.printerControls.append(self.sendbtn) #self.printerControls.append(self.sendbtn)
lbrs.Add(self.sendbtn) lbrs.Add(self.sendbtn)
self.clearbtn=wx.Button(self.panel,-1,_("Clear"),size=(55,28), pos=(750,420))
self.clearbtn.Bind(wx.EVT_BUTTON,self.clearOutput)
lbrs.Add(self.clearbtn)
lrs.Add(lbrs) lrs.Add(lbrs)
#left pane #left pane
......
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