Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/, /newedit/src/mixins/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/, /newedit/src/mixins/

Reply

Author limodou
Full name limodou
Date 2005-02-06 07:38:25 PST
Message User: limodou
Date: 05/02/06 07:38:25

Modified:
 /newedit/src/
  ChangeLog.txt
 /newedit/src/mixins/
  Editor.py, EditorFactory.py, Import.py, mPyRun.py, mRun.py

Log:
 asyn execute program

File Changes:

Directory: /newedit/src/
========================

File [changed]: ChangeLog.txt
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/ChangeLo​g.txt?r1=1.126&r​2=1.127
Delta lines: +5 -0
-------------------
--- ChangeLog.txt 6 Feb 2005 11:46:22 -0000 1.126
+++ ChangeLog.txt 6 Feb 2005 15:38:24 -0000 1.127
@@ -1,4 +1,9 @@
 [2005/02/06]
+mRun.py ÔÚNewEditÖÐÖ´ÐгÌÐòÊ​±£¬²»½øÐÐÊäÈëÊä³öÖض​¨Ïòʱ²ÉÓÃÒì²½Ö´ÐÐ
+Editor.py EditorFactory.py
+ ¸üÐÂÎĵµÊ±ÔÚTagÉÏÏÔʾ*ºÅ
+
+[2005/02/06]
 EditorFactory.py mSession.py Editor.py mEditorCtrl.py
                 Æô¶¯Ê±±à¼­´°¿ÚµÄÎļþÑÓ³Ù´ò¿ª
                 

Directory: /newedit/src/mixins/
===============================

File [changed]: Editor.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/E​ditor.py?r1=1.50​&r2=1.51
Delta lines: +2 -1
-------------------
--- Editor.py 6 Feb 2005 11:46:23 -0000 1.50
+++ Editor.py 6 Feb 2005 15:38:25 -0000 1.51
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Editor.py,v 1.50 2005/02/06 11:46:23 limodou Exp $
+# $Id: Editor.py,v 1.51 2005/02/06 15:38:25 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -291,6 +291,7 @@
             if not self.isModified():
                 self.SetSavePoint()
             self.editctrl.showTitle(self)
+# self.editctrl.showPa​geTitle(self)
         self.setLineNumberMargin()
         self.callplugin('on_modified', self, event)
 

File [changed]: EditorFactory.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/E​ditorFactory.py?r1=1​.8&r2=1.9
Delta lines: +2 -2
-------------------
--- EditorFactory.py 6 Feb 2005 11:46:23 -0000 1.8
+++ EditorFactory.py 6 Feb 2005 15:38:25 -0000 1.9
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: EditorFactory.py,v 1.8 2005/02/06 11:46:23 limodou Exp $
+# $Id: EditorFactory.py,v 1.9 2005/02/06 15:38:25 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -224,7 +224,7 @@
     def showPageTitle(self, ctrl):
         title = os.path.basename(ctr​l.getShortFilename()​)
 # if ctrl.isModified():
-# title = title + ' *'
+# title = '* ' + title
         index = self.getIndex(ctrl)
         if title != self.GetPageText(index):
             self.SetPageText(sel​f.getIndex(ctrl), title)

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.68​&r2=1.69
Delta lines: +3 -2
-------------------
--- Import.py 6 Feb 2005 11:46:23 -0000 1.68
+++ Import.py 6 Feb 2005 15:38:25 -0000 1.69
@@ -20,7 +20,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Import.py,v 1.68 2005/02/06 11:46:23 limodou Exp $
+# $Id: Import.py,v 1.69 2005/02/06 15:38:25 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------
@@ -3040,7 +3040,7 @@
                 "Stop running", wx.OK | wx.ICON_INFORMATION)
             dlg.ShowModal()
     else:
- os.system(command)
+ wx.Execute(command)
 Mixin.setMixin('mainframe', 'RunCommand', RunCommand)
 
 def OnIdle(win, event):
@@ -3562,7 +3562,8 @@
     args = args.replace('$file', win.document.filename)
     ext = os.path.splitext(win​.document.filename)[​1].lower()
     if ext == '.pyw':
- command = interpreter + 'w -u "%s" %s' % (win.document.filename, args)
+ i_main, i_ext = os.path.splitext(interpreter)
+ command = i_main + 'w' + i_ext + ' -u "%s" %s' % (win.document.filename, args)
         guiflag = True
     else:
         command = interpreter + ' -u "%s" %s' % (win.document.filename, args)

File [changed]: mPyRun.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​PyRun.py?r1=1.7&​r2=1.8
Delta lines: +3 -2
-------------------
--- mPyRun.py 30 Jan 2005 13:30:21 -0000 1.7
+++ mPyRun.py 6 Feb 2005 15:38:25 -0000 1.8
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: mPyRun.py,v 1.7 2005/01/30 13:30:21 limodou Exp $
+# $Id: mPyRun.py,v 1.8 2005/02/06 15:38:25 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -74,7 +74,8 @@
     args = args.replace('$file', win.document.filename)
     ext = os.path.splitext(win​.document.filename)[​1].lower()
     if ext == '.pyw':
- command = interpreter + 'w -u "%s" %s' % (win.document.filename, args)
+ i_main, i_ext = os.path.splitext(interpreter)
+ command = i_main + 'w' + i_ext + ' -u "%s" %s' % (win.document.filename, args)
         guiflag = True
     else:
         command = interpreter + ' -u "%s" %s' % (win.document.filename, args)

File [changed]: mRun.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​Run.py?r1=1.6&r2​=1.7
Delta lines: +2 -2
-------------------
--- mRun.py 23 Dec 2004 15:41:58 -0000 1.6
+++ mRun.py 6 Feb 2005 15:38:25 -0000 1.7
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: mRun.py,v 1.6 2004/12/23 15:41:58 limodou Exp $
+# $Id: mRun.py,v 1.7 2005/02/06 15:38:25 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -74,7 +74,7 @@
                 "Stop running", wx.OK | wx.ICON_INFORMATION)
             dlg.ShowModal()
     else:
- os.system(command)
+ wx.Execute(command)
 Mixin.setMixin('mainframe', 'RunCommand', RunCommand)
 
 def OnIdle(win, event):




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/, /newedit/src/mixins/ limodou limodou 2005-02-06 07:38:25 PST
Messages per page: