-import wx\r
+import wx,wx.stc\r
import sys,math,threading,os\r
\r
from gui import gcodeTextArea\r
self.list.SetSelection(0)\r
self.Bind(wx.EVT_LISTBOX, self.OnSelect, self.list)\r
self.textArea.Bind(wx.EVT_KILL_FOCUS, self.OnFocusLost, self.textArea)\r
+ self.textArea.Bind(wx.stc.EVT_STC_CHANGE, self.OnFocusLost, self.textArea)\r
\r
sizer = wx.GridBagSizer()\r
sizer.Add(self.list, (0,0), span=(1,1), flag=wx.EXPAND)\r
from util import profile
-if sys.platform == 'darwin':
+if False and sys.platform == 'darwin':
class GcodeTextArea(wx.TextCtrl):
def __init__(self, parent):
super(GcodeTextArea, self).__init__(parent, style=wx.TE_MULTILINE|wx.TE_DONTWRAP|wx.TE_PROCESS_TAB)