Python论坛  - 讨论区

标题:[python-chinese] wx.Execute和wx.Process的问题,急!

2008年01月25日 星期五 15:21

zinicl zinicl在gmail.com
星期五 一月 25 15:21:12 HKT 2008

ÓÃ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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月25日 星期五 15:43

Joey tang.jiyu在gmail.com
星期五 一月 25 15:43:10 HKT 2008

Ϊʲô²»ÓÃ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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月25日 星期五 15:50

zinicl zinicl在gmail.com
星期五 一月 25 15:50:00 HKT 2008

ÒòΪÊÇÒì²½£¬¶øÇÒ²»ÏëÏÔʾÃüÁîÐд°¿Ú£¬²¶»ñÊä³öºó£¬»¹Òª½øÒ»²½¼Ó¹¤²ÅÏÔʾÔÚ½çÃæÉÏ

ÔÚ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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月25日 星期五 16:42

lai yonghao lanphaday在gmail.com
星期五 一月 25 16:42:43 HKT 2008

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 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2008年01月25日 星期五 17:15

zinicl zinicl在gmail.com
星期五 一月 25 17:15:05 HKT 2008

àÅ£¬ÖÕÓڸ㶨£¬²»¹ØwxpythonµÄÊÂÇ飬ÔÚÃüÁîÐгÌÐòÖмÓÉÏsetbuf(stdout, NULL)¾ÍOK
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080125/5caa0c97/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号