2008年01月25日 星期五 15:21
ÓÃwx.Execute(self.edit_file_server.GetValue(), wx.EXEC_ASYNC, thread.processServer)Æô¶¯ÁËÒ»¸öÃüÁîÐгÌÐò£¬²¢ÇÒÓà stream = self.processServer.GetInputStream() if stream is not None and stream.CanRead(): qslog = stream.read() ½«±ê×¼Êä³ö²¶»ñ£¬¾¹ý²âÊÔ·¢ÏÖÊä³ö²»Äܼ°Ê±±»²¶»ñ£¬ºÃÏñ±ØÐëÔÚ»º³åÂúÁËÒÔºó²ÅÄܱ»wxPython²¶»ñ£¬ÔõÑù²ÅÄÜʹwxPython¼°Ê±×¥µ½Õâ¸öÃüÁîÐгÌÐòµÄÊä³ö£¿Ð»Ð»£¡ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080125/713f7863/attachment-0001.htm
2008年01月25日 星期五 15:43
Ϊʲô²»ÓÃos.system() »òÕß popen£¿ 2008/1/25 zinicl <zinicl在gmail.com>: > ÓÃwx.Execute(self.edit_file_server.GetValue(), wx.EXEC_ASYNC, > thread.processServer)Æô¶¯ÁËÒ»¸öÃüÁîÐгÌÐò£¬²¢ÇÒÓà > stream = self.processServer.GetInputStream() > if stream is not None and stream.CanRead(): > qslog = stream.read() > ½«±ê×¼Êä³ö²¶»ñ£¬¾¹ý²âÊÔ·¢ÏÖÊä³ö²»Äܼ°Ê±±»²¶»ñ£¬ºÃÏñ±ØÐëÔÚ»º³åÂúÁËÒÔºó²ÅÄܱ»wxPython²¶»ñ£¬ÔõÑù²ÅÄÜʹwxPython¼°Ê±×¥µ½Õâ¸öÃüÁîÐгÌÐòµÄÊä³ö£¿Ð»Ð»£¡ > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- Best Regard, Tang, Jiyu (Joey) -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080125/c4023a3e/attachment.htm
2008年01月25日 星期五 15:50
ÒòΪÊÇÒì²½£¬¶øÇÒ²»ÏëÏÔʾÃüÁîÐд°¿Ú£¬²¶»ñÊä³öºó£¬»¹Òª½øÒ»²½¼Ó¹¤²ÅÏÔʾÔÚ½çÃæÉÏ ÔÚ08-1-25£¬Joey <tang.jiyu在gmail.com> дµÀ£º > > Ϊʲô²»ÓÃos.system() »òÕß popen£¿ > > > > 2008/1/25 zinicl <zinicl在gmail.com>: > > > ÓÃwx.Execute(self.edit_file_server.GetValue(), wx.EXEC_ASYNC, > > thread.processServer)Æô¶¯ÁËÒ»¸öÃüÁîÐгÌÐò£¬²¢ÇÒÓà > > stream = self.processServer.GetInputStream() > > if stream is not None and stream.CanRead(): > > qslog = stream.read() > > ½«±ê×¼Êä³ö²¶»ñ£¬¾¹ý²âÊÔ·¢ÏÖÊä³ö²»Äܼ°Ê±±»²¶»ñ£¬ºÃÏñ±ØÐëÔÚ»º³åÂúÁËÒÔºó²ÅÄܱ»wxPython²¶»ñ£¬ÔõÑù²ÅÄÜʹwxPython¼°Ê±×¥µ½Õâ¸öÃüÁîÐгÌÐòµÄÊä³ö£¿Ð»Ð»£¡ > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > -- > Best Regard, > Tang, Jiyu (Joey) > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080125/ced1f008/attachment.html
2008年01月25日 星期五 16:42
stream.GetC() ÔÚ08-1-25£¬zinicl <zinicl在gmail.com> дµÀ£º > > ÒòΪÊÇÒì²½£¬¶øÇÒ²»ÏëÏÔʾÃüÁîÐд°¿Ú£¬²¶»ñÊä³öºó£¬»¹Òª½øÒ»²½¼Ó¹¤²ÅÏÔʾÔÚ½çÃæÉÏ > > ÔÚ08-1-25£¬Joey <tang.jiyu在gmail.com> дµÀ£º > > > > Ϊʲô²»ÓÃos.system() »òÕß popen£¿ > > > > > > > > 2008/1/25 zinicl <zinicl在gmail.com>: > > > > > ÓÃwx.Execute(self.edit_file_server.GetValue(), wx.EXEC_ASYNC, > > > thread.processServer)Æô¶¯ÁËÒ»¸öÃüÁîÐгÌÐò£¬²¢ÇÒÓà > > > stream = self.processServer.GetInputStream() > > > if stream is not None and stream.CanRead(): > > > qslog = stream.read() > > > ½«±ê×¼Êä³ö²¶»ñ£¬¾¹ý²âÊÔ·¢ÏÖÊä³ö²»Äܼ°Ê±±»²¶»ñ£¬ºÃÏñ±ØÐëÔÚ»º³åÂúÁËÒÔºó²ÅÄܱ»wxPython²¶»ñ£¬ÔõÑù²ÅÄÜʹwxPython¼°Ê±×¥µ½Õâ¸öÃüÁîÐгÌÐòµÄÊä³ö£¿Ð»Ð»£¡ > > > > > > > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese在lists.python.cn > > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > > Unsubscribe: send unsubscribe to > > > python-chinese-request在lists.python.cn > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > -- > > Best Regard, > > Tang, Jiyu (Joey) > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080125/fdd9cc2f/attachment-0001.htm
2008年01月25日 星期五 17:15
àÅ£¬ÖÕÓڸ㶨£¬²»¹ØwxpythonµÄÊÂÇ飬ÔÚÃüÁîÐгÌÐòÖмÓÉÏsetbuf(stdout, NULL)¾ÍOK -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080125/5caa0c97/attachment.html
Zeuux © 2024
京ICP备05028076号