2005年04月07日 星期四 13:48
希望是纯库来做,不是使用PostScript打印机来处理。 -- 欢迎访问我的Blog: http://spaces.msn.com/members/meaglith/ http://blog.360.yahoo.com/genednaparadox ---------------------------------------- .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/ ------------------------------------------------- 沧海笑 滔滔两岸潮 浮沉随浪记今朝 苍天笑 纷纷世上潮 谁负谁胜天知晓 江山笑 烟两遥 涛浪淘尽红尘俗也知多少 竟惹寂寥 一襟晚照 苍生笑 不再寂寥 豪情仍在痴痴笑笑 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050407/fafbed1a/attachment.html
2005年04月07日 星期四 15:56
ÎÒ×î½üÔÚʹÓÃwxpython¿ª·¢Ò»¸öguiС¹¤¾ß£¬°ÑËùÓÐÊä³ö£¬°üÀ¨stdoutµÈ¶¼ÖØж¨Ïòµ½Ò»¸ölog´°¿Ú£¬ ʹÓÃTextCtrlʵÏÖ¡£µ«ÏÖÔÚÓÐÒ»¸öÎÊÌ⣬Èç¹ûlogÊý¾ÝºÜ¶à£¬¸Ã´°¿ÚÄÚÈÝ»áÒ»Ö±Ôö¼ÓÏÂÈ¥£¬ÕâÑùÐÔÄܺܲ»ºÃ¡£ ËùÒÔÑ°ÇóÀàËÆwindowsÏÂdos´°¿ÚÄÄÖÖЧ¹û£¬É趨¶àÉÙÐÐÊýºó£¬³¬¹ýÁ˸ÃÉèÖúó£¬×îÀϵľÍ×Ô¶¯Ïûʧ¡£ ÇëÎʸÃÈçºÎʵÏÖÄØ£¿ лл£¡ zzhikang _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
2005年04月07日 星期四 16:12
=BA=C3=CF=F3=C3=BB=D3=D0=CF=D6=B3=C9=B5=C4=B6=AB=CE=F7=A3=AC=D2=AA=D7=D4=D2= =D1=C8=A5=CA=B5=CF=D6=C1=CB=A1=A3 On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > =CE=D2=D7=EE=BD=FC=D4=DA=CA=B9=D3=C3wxpython=BF=AA=B7=A2=D2=BB=B8=F6gui= =D0=A1=B9=A4=BE=DF=A3=AC=B0=D1=CB=F9=D3=D0=CA=E4=B3=F6=A3=AC=B0=FC=C0=A8std= out=B5=C8=B6=BC=D6=D8=D0=C2=B6=A8=CF=F2=B5=BD=D2=BB=B8=F6log=B4=B0=BF=DA=A3= =AC > =CA=B9=D3=C3TextCtrl=CA=B5=CF=D6=A1=A3=B5=AB=CF=D6=D4=DA=D3=D0=D2=BB=B8= =F6=CE=CA=CC=E2=A3=AC=C8=E7=B9=FBlog=CA=FD=BE=DD=BA=DC=B6=E0=A3=AC=B8=C3=B4= =B0=BF=DA=C4=DA=C8=DD=BB=E1=D2=BB=D6=B1=D4=F6=BC=D3=CF=C2=C8=A5=A3=AC=D5=E2= =D1=F9=D0=D4=C4=DC=BA=DC=B2=BB=BA=C3=A1=A3 > =CB=F9=D2=D4=D1=B0=C7=F3=C0=E0=CB=C6windows=CF=C2dos=B4=B0=BF=DA=C4=C4=D6= =D6=D0=A7=B9=FB=A3=AC=C9=E8=B6=A8=B6=E0=C9=D9=D0=D0=CA=FD=BA=F3=A3=AC=B3=AC= =B9=FD=C1=CB=B8=C3=C9=E8=D6=C3=BA=F3=A3=AC=D7=EE=C0=CF=B5=C4=BE=CD=D7=D4=B6= =AF=CF=FB=CA=A7=A1=A3 >=20 > =C7=EB=CE=CA=B8=C3=C8=E7=BA=CE=CA=B5=CF=D6=C4=D8=A3=BF >=20 > =D0=BB=D0=BB=A3=A1 >=20 > zzhikang >=20 > _________________________________________________________________ > Don=92t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >=20 > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >=20 --=20 I like python!=20 My Donews Blog: http://www.donews.net/limodou My Sina Blog: http://blog.sina.com.cn/blog/1148608914 New Google Maillist: http://groups-beta.google.com/group/python-cn
2005年04月07日 星期四 18:38
COM+不知道能不能实现这个功能 On Apr 7, 2005 1:48 PM, Tintin <genedna at gmail.com> wrote: > > 希望是纯库来做,不是使用PostScript打印机来处理。 > > -- > 欢迎访问我的Blog: > http://spaces.msn.com/members/meaglith/ > http://blog.360.yahoo.com/genednaparadox > > ---------------------------------------- > .--. > |o_o | > |:_/ | > // \ \ > (| | ) > /'\_ _/`\ > \___)=(___/ > ------------------------------------------------- > 沧海笑 滔滔两岸潮 浮沉随浪记今朝 > 苍天笑 纷纷世上潮 谁负谁胜天知晓 > 江山笑 烟两遥 涛浪淘尽红尘俗也知多少 > 竟惹寂寥 一襟晚照 > 苍生笑 不再寂寥 豪情仍在痴痴笑笑 > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- My Blog >> http://leejd.cndev.org My QQ >> 9847243 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050407/a151034b/attachment.htm
2005年04月08日 星期五 10:08
ÎÒÓÃtextctrlʵÏÖÁËÒ»¸ö´°¿Ú£¬È»ºó°ÑÊä³öÄÚÈݶ¨Ïò¹ýÈ¥£¬ ÔÚtextctrlµÄ writeº¯ÊýÖУ¬Åжϵ±Ç°ÐÐÊýÊÇ·ñ³¬¹ýÉ趨ֵ£¬Èç¹û³¬¹ý¾ÍÓÃtextctrlµÄremoveº¯Êý È¥µôµÚÒ»ÐС£¡£¡£ µ«ÔËÐÐʱ£¬¹¦Äܵ½ÊµÏÖÁË£¬µ«ÆÁÄ»²»Í£µÄÉÁ¶¯£¬¹À¼ÆÔÚremoveµÚÒ»Ðк¯Êýʱ£¬ÆÁÄ»»á»Øµ½µÚÒ»ÐУ¬¶øÊä³öʱ£¬ÓÖÇл»µ½×îºóÒ»Ñù£¬Èç´Ë²»Í£µÄÇл»¡£¡£ ÓÐûÓкõãµÄ°ì·¨£¿ >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Thu, 7 Apr 2005 16:12:55 +0800 > >ºÃÏóûÓÐÏֳɵĶ«Î÷£¬Òª×ÔÒÑȥʵÏÖÁË¡£ > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > >ÎÒ×î½üÔÚʹÓÃwxpython¿ª·¢Ò»¸öguiС¹¤¾ß£¬°ÑËùÓÐÊä³ö£¬°üÀ¨stdoutµÈ¶¼ÖØж¨Ïòµ½Ò»¸ölog´°¿Ú£¬ > > >ʹÓÃTextCtrlʵÏÖ¡£µ«ÏÖÔÚÓÐÒ»¸öÎÊÌ⣬Èç¹ûlogÊý¾ÝºÜ¶à£¬¸Ã´°¿ÚÄÚÈÝ»áÒ»Ö±Ôö¼ÓÏÂÈ¥£¬ÕâÑùÐÔÄܺܲ»ºÃ¡£ > > >ËùÒÔÑ°ÇóÀàËÆwindowsÏÂdos´°¿ÚÄÄÖÖЧ¹û£¬É趨¶àÉÙÐÐÊýºó£¬³¬¹ýÁ˸ÃÉèÖúó£¬×îÀϵľÍ×Ô¶¯Ïûʧ¡£ > > > > ÇëÎʸÃÈçºÎʵÏÖÄØ£¿ > > > > лл£¡ > > > > zzhikang > > > > _________________________________________________________________ > > Dont just search. Find. Check out the new MSN Search! > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > >-- >I like python! >My Donews Blog: http://www.donews.net/limodou >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 >New Google Maillist: http://groups-beta.google.com/group/python-cn >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
2005年04月08日 星期五 10:15
=CA=C7=B2=BB=CA=C7=B2=BB=D3=C3remove=A3=AC=CA=B9=D3=C3settext=D6=AE=C0=E0= =B5=C4=CA=D4=D2=BB=CA=D4=A1=A3 On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > =CE=D2=D3=C3textctrl=CA=B5=CF=D6=C1=CB=D2=BB=B8=F6=B4=B0=BF=DA=A3=AC=C8= =BB=BA=F3=B0=D1=CA=E4=B3=F6=C4=DA=C8=DD=B6=A8=CF=F2=B9=FD=C8=A5=A3=AC > =D4=DAtextctrl=B5=C4 > write=BA=AF=CA=FD=D6=D0=A3=AC=C5=D0=B6=CF=B5=B1=C7=B0=D0=D0=CA=FD=CA=C7= =B7=F1=B3=AC=B9=FD=C9=E8=B6=A8=D6=B5=A3=AC=C8=E7=B9=FB=B3=AC=B9=FD=BE=CD=D3= =C3textctrl=B5=C4remove=BA=AF=CA=FD > =C8=A5=B5=F4=B5=DA=D2=BB=D0=D0=A1=A3=A1=A3=A1=A3 >=20 > =B5=AB=D4=CB=D0=D0=CA=B1=A3=AC=B9=A6=C4=DC=B5=BD=CA=B5=CF=D6=C1=CB=A3=AC= =B5=AB=C6=C1=C4=BB=B2=BB=CD=A3=B5=C4=C9=C1=B6=AF=A3=AC=B9=C0=BC=C6=D4=DArem= ove=B5=DA=D2=BB=D0=D0=BA=AF=CA=FD=CA=B1=A3=AC=C6=C1=C4=BB=BB=E1=BB=D8=B5=BD= =B5=DA=D2=BB=D0=D0=A3=AC=B6=F8=CA=E4=B3=F6=CA=B1=A3=AC=D3=D6=C7=D0=BB=BB=B5= =BD=D7=EE=BA=F3=D2=BB=D1=F9=A3=AC=C8=E7=B4=CB=B2=BB=CD=A3=B5=C4=C7=D0=BB=BB= =A1=A3=A1=A3 > =D3=D0=C3=BB=D3=D0=BA=C3=B5=E3=B5=C4=B0=EC=B7=A8=A3=BF >=20 > >Subject: Re: [python-chinese] =D4=F5=D1=F9=CA=B5=CF=D6=C0=E0 =CB=C6dos= =B4=B0=BF=DA=B5=C4log=A3=BF > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > >=BA=C3=CF=F3=C3=BB=D3=D0=CF=D6=B3=C9=B5=C4=B6=AB=CE=F7=A3=AC=D2=AA=D7=D4= =D2=D1=C8=A5=CA=B5=CF=D6=C1=CB=A1=A3 > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > >=CE=D2=D7=EE=BD=FC=D4=DA=CA=B9=D3=C3wxpython=BF=AA=B7=A2=D2=BB=B8=F6gui= =D0=A1=B9=A4=BE=DF=A3=AC=B0=D1=CB=F9=D3=D0=CA=E4=B3=F6=A3=AC=B0=FC=C0=A8std= out=B5=C8=B6=BC=D6=D8=D0=C2=B6=A8=CF=F2=B5=BD=D2=BB=B8=F6log=B4=B0=BF=DA=A3= =AC > > > > >=CA=B9=D3=C3TextCtrl=CA=B5=CF=D6=A1=A3=B5=AB=CF=D6=D4=DA=D3=D0=D2=BB=B8= =F6=CE=CA=CC=E2=A3=AC=C8=E7=B9=FBlog=CA=FD=BE=DD=BA=DC=B6=E0=A3=AC=B8=C3=B4= =B0=BF=DA=C4=DA=C8=DD=BB=E1=D2=BB=D6=B1=D4=F6=BC=D3=CF=C2=C8=A5=A3=AC=D5=E2= =D1=F9=D0=D4=C4=DC=BA=DC=B2=BB=BA=C3=A1=A3 > > > > >=CB=F9=D2=D4=D1=B0=C7=F3=C0=E0=CB=C6windows=CF=C2dos=B4=B0=BF=DA=C4=C4= =D6=D6=D0=A7=B9=FB=A3=AC=C9=E8=B6=A8=B6=E0=C9=D9=D0=D0=CA=FD=BA=F3=A3=AC=B3= =AC=B9=FD=C1=CB=B8=C3=C9=E8=D6=C3=BA=F3=A3=AC=D7=EE=C0=CF=B5=C4=BE=CD=D7=D4= =B6=AF=CF=FB=CA=A7=A1=A3 > > > > > > =C7=EB=CE=CA=B8=C3=C8=E7=BA=CE=CA=B5=CF=D6=C4=D8=A3=BF > > > > > > =D0=BB=D0=BB=A3=A1 > > > > > > zzhikang > > > > > > _________________________________________________________________ > > > Don=92t just search. Find. Check out the new MSN Search! > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > _______________________________________________ > > > python-chinese list > > > python-chinese at lists.python.cn > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > >-- > >I like python! > >My Donews Blog: http://www.donews.net/limodou > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > >New Google Maillist: http://groups-beta.google.com/group/python-cn > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese >=20 >=20 > ----------------------------------------------- > Best regards, > kangzz >=20 > mailto:zzhikang at hotmail.com > Tel : 021-65407754 > MP: 13916928084 >=20 > _________________________________________________________________ > Don=92t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >=20 >=20 --=20 I like python!=20 My Donews Blog: http://www.donews.net/limodou My Sina Blog: http://blog.sina.com.cn/blog/1148608914 New Google Maillist: http://groups-beta.google.com/group/python-cn
2005年04月08日 星期五 15:02
²»¶Ô°É£¬ÎÒµÄÒâ˼ÊÇÏÂÃæ²»¶ÏÓÐÐÂÐÅÏ¢¼ÓÈëtextctrl£¬Èç¹û×ÜÐÐÊý´ïµ½ºó£¬×îÉÏÃæµÄÒ»ÐÐ×Ô¶¯±»É¾³ý£¬ ÒÔ´ïµ½dos window×Ô¶¯È¥µô×îÏÈÒ»ÐУ¬±£³Ötextctrl²»»áÈò»¶ÏÊäÈëµÄÐÅÏ¢Ô½»ýÔ½¶à¡£ settextº¯Êý¸ÉʲôµÄ£¿ >From: limodou <limodou at gmail.com> >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn >To: Python-Chinese <python-chinese at lists.python.cn> >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Fri, 8 Apr 2005 10:15:51 +0800 > >ÊDz»ÊDz»ÓÃremove£¬Ê¹ÓÃsettextÖ®ÀàµÄÊÔÒ»ÊÔ¡£ > >On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > ÎÒÓÃtextctrlʵÏÖÁËÒ»¸ö´°¿Ú£¬È»ºó°ÑÊä³öÄÚÈݶ¨Ïò¹ýÈ¥£¬ > > ÔÚtextctrlµÄ > > >writeº¯ÊýÖУ¬Åжϵ±Ç°ÐÐÊýÊÇ·ñ³¬¹ýÉ趨ֵ£¬Èç¹û³¬¹ý¾ÍÓÃtextctrlµÄremoveº¯Êý > > È¥µôµÚÒ»ÐС£¡£¡£ > > > > >µ«ÔËÐÐʱ£¬¹¦Äܵ½ÊµÏÖÁË£¬µ«ÆÁÄ»²»Í£µÄÉÁ¶¯£¬¹À¼ÆÔÚremoveµÚÒ»Ðк¯Êýʱ£¬ÆÁÄ»»á»Øµ½µÚÒ»ÐУ¬¶øÊä³öʱ£¬ÓÖÇл»µ½×îºóÒ»Ñù£¬Èç´Ë²»Í£µÄÇл»¡£¡£ > > ÓÐûÓкõãµÄ°ì·¨£¿ > > > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > > > >ºÃÏóûÓÐÏֳɵĶ«Î÷£¬Òª×ÔÒÑȥʵÏÖÁË¡£ > > > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > >ÎÒ×î½üÔÚʹÓÃwxpython¿ª·¢Ò»¸öguiС¹¤¾ß£¬°ÑËùÓÐÊä³ö£¬°üÀ¨stdoutµÈ¶¼ÖØж¨Ïòµ½Ò»¸ölog´°¿Ú£¬ > > > > > > > >ʹÓÃTextCtrlʵÏÖ¡£µ«ÏÖÔÚÓÐÒ»¸öÎÊÌ⣬Èç¹ûlogÊý¾ÝºÜ¶à£¬¸Ã´°¿ÚÄÚÈÝ»áÒ»Ö±Ôö¼ÓÏÂÈ¥£¬ÕâÑùÐÔÄܺܲ»ºÃ¡£ > > > > > > > >ËùÒÔÑ°ÇóÀàËÆwindowsÏÂdos´°¿ÚÄÄÖÖЧ¹û£¬É趨¶àÉÙÐÐÊýºó£¬³¬¹ýÁ˸ÃÉèÖúó£¬×îÀϵľÍ×Ô¶¯Ïûʧ¡£ > > > > > > > > ÇëÎʸÃÈçºÎʵÏÖÄØ£¿ > > > > > > > > лл£¡ > > > > > > > > zzhikang > > > > > > > > _________________________________________________________________ > > > > Dont just search. Find. Check out the new MSN Search! > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > _______________________________________________ > > > > python-chinese list > > > > python-chinese at lists.python.cn > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > >-- > > >I like python! > > >My Donews Blog: http://www.donews.net/limodou > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > >_______________________________________________ > > >python-chinese list > > >python-chinese at lists.python.cn > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > ----------------------------------------------- > > Best regards, > > kangzz > > > > mailto:zzhikang at hotmail.com > > Tel : 021-65407754 > > MP: 13916928084 > > > > _________________________________________________________________ > > Dont just search. Find. Check out the new MSN Search! > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > >-- >I like python! >My Donews Blog: http://www.donews.net/limodou >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 >New Google Maillist: http://groups-beta.google.com/group/python-cn >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
2005年04月08日 星期五 15:41
=CE=D2=D6=BB=CA=C7=CB=E6=CA=D6=D2=BB=D0=B4=A3=ACSetText()=CA=C7=D3=C3=C0=B4= =C9=E8=D6=C3TextCtrl=B5=C4=CE=C4=B1=BE=C4=DA=C8=DD=B5=C4=A1=A3=CE=D2=CF=EB= =BF=C9=C4=DC=D5=E2=D1=F9=B5=C4=D6=B4=D0=D0=CB=D9=B6=C8=BB=E1=B1=C8=C4=E3=CA= =B9=D3=C3remove=B5=C4=CB=D9=B6=C8=BF=EC=A3=AC=CE=D2=B2=C2=CF=EB=A1=A3 On Apr 8, 2005 3:02 PM, kanchy kang <zzhikang at hotmail.com> wrote: >=20 > =B2=BB=B6=D4=B0=C9=A3=AC=CE=D2=B5=C4=D2=E2=CB=BC=CA=C7=CF=C2=C3=E6=B2=BB= =B6=CF=D3=D0=D0=C2=D0=C5=CF=A2=BC=D3=C8=EBtextctrl=A3=AC=C8=E7=B9=FB=D7=DC= =D0=D0=CA=FD=B4=EF=B5=BD=BA=F3=A3=AC=D7=EE=C9=CF=C3=E6=B5=C4=D2=BB=D0=D0=D7= =D4=B6=AF=B1=BB=C9=BE=B3=FD=A3=AC > =D2=D4=B4=EF=B5=BDdos window=D7=D4=B6=AF=C8=A5=B5=F4=D7=EE=CF=C8=D2=BB=D0= =D0=A3=AC=B1=A3=B3=D6textctrl=B2=BB=BB=E1=C8=C3=B2=BB=B6=CF=CA=E4=C8=EB=B5= =C4=D0=C5=CF=A2=D4=BD=BB=FD=D4=BD=B6=E0=A1=A3 >=20 > settext=BA=AF=CA=FD=B8=C9=CA=B2=C3=B4=B5=C4=A3=BF >=20 > >From: limodou <limodou at gmail.com> > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > >To: Python-Chinese <python-chinese at lists.python.cn> > >Subject: Re: [python-chinese] =D4=F5=D1=F9=CA=B5=CF=D6=C0=E0 =CB=C6dos= =B4=B0=BF=DA=B5=C4log=A3=BF > >Date: Fri, 8 Apr 2005 10:15:51 +0800 > > > >=CA=C7=B2=BB=CA=C7=B2=BB=D3=C3remove=A3=AC=CA=B9=D3=C3settext=D6=AE=C0= =E0=B5=C4=CA=D4=D2=BB=CA=D4=A1=A3 > > > >On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > =CE=D2=D3=C3textctrl=CA=B5=CF=D6=C1=CB=D2=BB=B8=F6=B4=B0=BF=DA=A3=AC= =C8=BB=BA=F3=B0=D1=CA=E4=B3=F6=C4=DA=C8=DD=B6=A8=CF=F2=B9=FD=C8=A5=A3=AC > > > =D4=DAtextctrl=B5=C4 > > > > >write=BA=AF=CA=FD=D6=D0=A3=AC=C5=D0=B6=CF=B5=B1=C7=B0=D0=D0=CA=FD=CA=C7= =B7=F1=B3=AC=B9=FD=C9=E8=B6=A8=D6=B5=A3=AC=C8=E7=B9=FB=B3=AC=B9=FD=BE=CD=D3= =C3textctrl=B5=C4remove=BA=AF=CA=FD > > > =C8=A5=B5=F4=B5=DA=D2=BB=D0=D0=A1=A3=A1=A3=A1=A3 > > > > > > > >=B5=AB=D4=CB=D0=D0=CA=B1=A3=AC=B9=A6=C4=DC=B5=BD=CA=B5=CF=D6=C1=CB=A3=AC= =B5=AB=C6=C1=C4=BB=B2=BB=CD=A3=B5=C4=C9=C1=B6=AF=A3=AC=B9=C0=BC=C6=D4=DArem= ove=B5=DA=D2=BB=D0=D0=BA=AF=CA=FD=CA=B1=A3=AC=C6=C1=C4=BB=BB=E1=BB=D8=B5=BD= =B5=DA=D2=BB=D0=D0=A3=AC=B6=F8=CA=E4=B3=F6=CA=B1=A3=AC=D3=D6=C7=D0=BB=BB=B5= =BD=D7=EE=BA=F3=D2=BB=D1=F9=A3=AC=C8=E7=B4=CB=B2=BB=CD=A3=B5=C4=C7=D0=BB=BB= =A1=A3=A1=A3 > > > =D3=D0=C3=BB=D3=D0=BA=C3=B5=E3=B5=C4=B0=EC=B7=A8=A3=BF > > > > > > >Subject: Re: [python-chinese] =D4=F5=D1=F9=CA=B5=CF=D6=C0=E0 =CB=C6d= os=B4=B0=BF=DA=B5=C4log=A3=BF > > > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > > > > > >=BA=C3=CF=F3=C3=BB=D3=D0=CF=D6=B3=C9=B5=C4=B6=AB=CE=F7=A3=AC=D2=AA= =D7=D4=D2=D1=C8=A5=CA=B5=CF=D6=C1=CB=A1=A3 > > > > > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > > > > >=CE=D2=D7=EE=BD=FC=D4=DA=CA=B9=D3=C3wxpython=BF=AA=B7=A2=D2=BB=B8=F6gu= i=D0=A1=B9=A4=BE=DF=A3=AC=B0=D1=CB=F9=D3=D0=CA=E4=B3=F6=A3=AC=B0=FC=C0=A8st= dout=B5=C8=B6=BC=D6=D8=D0=C2=B6=A8=CF=F2=B5=BD=D2=BB=B8=F6log=B4=B0=BF=DA= =A3=AC > > > > > > > > > > >=CA=B9=D3=C3TextCtrl=CA=B5=CF=D6=A1=A3=B5=AB=CF=D6=D4=DA=D3=D0=D2=BB= =B8=F6=CE=CA=CC=E2=A3=AC=C8=E7=B9=FBlog=CA=FD=BE=DD=BA=DC=B6=E0=A3=AC=B8=C3= =B4=B0=BF=DA=C4=DA=C8=DD=BB=E1=D2=BB=D6=B1=D4=F6=BC=D3=CF=C2=C8=A5=A3=AC=D5= =E2=D1=F9=D0=D4=C4=DC=BA=DC=B2=BB=BA=C3=A1=A3 > > > > > > > > > > >=CB=F9=D2=D4=D1=B0=C7=F3=C0=E0=CB=C6windows=CF=C2dos=B4=B0=BF=DA=C4=C4= =D6=D6=D0=A7=B9=FB=A3=AC=C9=E8=B6=A8=B6=E0=C9=D9=D0=D0=CA=FD=BA=F3=A3=AC=B3= =AC=B9=FD=C1=CB=B8=C3=C9=E8=D6=C3=BA=F3=A3=AC=D7=EE=C0=CF=B5=C4=BE=CD=D7=D4= =B6=AF=CF=FB=CA=A7=A1=A3 > > > > > > > > > > =C7=EB=CE=CA=B8=C3=C8=E7=BA=CE=CA=B5=CF=D6=C4=D8=A3=BF > > > > > > > > > > =D0=BB=D0=BB=A3=A1 > > > > > > > > > > zzhikang > > > > > > > > > > _________________________________________________________________ > > > > > Don=92t just search. Find. Check out the new MSN Search! > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > _______________________________________________ > > > > > python-chinese list > > > > > python-chinese at lists.python.cn > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > >-- > > > >I like python! > > > >My Donews Blog: http://www.donews.net/limodou > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > >_______________________________________________ > > > >python-chinese list > > > >python-chinese at lists.python.cn > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > ----------------------------------------------- > > > Best regards, > > > kangzz > > > > > > mailto:zzhikang at hotmail.com > > > Tel : 021-65407754 > > > MP: 13916928084 > > > > > > _________________________________________________________________ > > > Don=92t just search. Find. Check out the new MSN Search! > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > >-- > >I like python! > >My Donews Blog: http://www.donews.net/limodou > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > >New Google Maillist: http://groups-beta.google.com/group/python-cn > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese >=20 > ----------------------------------------------- > Best regards, > kangzz >=20 > mailto:zzhikang at hotmail.com > Tel : 021-65407754 > MP: 13916928084 >=20 > _________________________________________________________________ > On the road to retirement? Check out MSN Life Events for advice on how to > get there! http://lifeevents.msn.com/category.aspx?cid=3DRetirement >=20 >=20 --=20 I like python!=20 My Donews Blog: http://www.donews.net/limodou My Sina Blog: http://blog.sina.com.cn/blog/1148608914 New Google Maillist: http://groups-beta.google.com/group/python-cn
2005年04月09日 星期六 10:22
ÕâÔõô˵£¿ÎÒÔõôûÓÐÕÒµ½TextCtrlÓÐSetTextº¯Êý£¿ ËæÊÖһд¾ÍÓÐÁË£¿ ¸üºÎ¿ö£¬¾ÍËãÓÐSetText£¬Ôõô»á³öÏÖ±ÈRemove¿ì£¿ ´ÓÃû×ÖÉÏ¿´£¬¾ÍÖªµÀ¸ù±¾²»Ïà¸ÉµÄ¡£ >From: limodou <limodou at gmail.com> >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn >To: Python-Chinese <python-chinese at lists.python.cn> >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Fri, 8 Apr 2005 15:41:21 +0800 > >ÎÒÖ»ÊÇËæÊÖһд£¬SetText()ÊÇÓÃÀ´ÉèÖÃTextCtrlµÄÎı¾ÄÚÈݵġ£ÎÒÏë¿ÉÄÜÕâÑùµÄÖ´ÐÐËٶȻá±ÈÄãʹÓÃremoveµÄËٶȿ죬ÎÒ²ÂÏë¡£ > >On Apr 8, 2005 3:02 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > >²»¶Ô°É£¬ÎÒµÄÒâ˼ÊÇÏÂÃæ²»¶ÏÓÐÐÂÐÅÏ¢¼ÓÈëtextctrl£¬Èç¹û×ÜÐÐÊý´ïµ½ºó£¬×îÉÏÃæµÄÒ»ÐÐ×Ô¶¯±»É¾³ý£¬ > > ÒÔ´ïµ½dos >window×Ô¶¯È¥µô×îÏÈÒ»ÐУ¬±£³Ötextctrl²»»áÈò»¶ÏÊäÈëµÄÐÅÏ¢Ô½»ýÔ½¶à¡£ > > > > settextº¯Êý¸ÉʲôµÄ£¿ > > > > >From: limodou <limodou at gmail.com> > > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > > >To: Python-Chinese <python-chinese at lists.python.cn> > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > >Date: Fri, 8 Apr 2005 10:15:51 +0800 > > > > > >ÊDz»ÊDz»ÓÃremove£¬Ê¹ÓÃsettextÖ®ÀàµÄÊÔÒ»ÊÔ¡£ > > > > > >On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > ÎÒÓÃtextctrlʵÏÖÁËÒ»¸ö´°¿Ú£¬È»ºó°ÑÊä³öÄÚÈݶ¨Ïò¹ýÈ¥£¬ > > > > ÔÚtextctrlµÄ > > > > > > > >writeº¯ÊýÖУ¬Åжϵ±Ç°ÐÐÊýÊÇ·ñ³¬¹ýÉ趨ֵ£¬Èç¹û³¬¹ý¾ÍÓÃtextctrlµÄremoveº¯Êý > > > > È¥µôµÚÒ»ÐС£¡£¡£ > > > > > > > > > > > >µ«ÔËÐÐʱ£¬¹¦Äܵ½ÊµÏÖÁË£¬µ«ÆÁÄ»²»Í£µÄÉÁ¶¯£¬¹À¼ÆÔÚremoveµÚÒ»Ðк¯Êýʱ£¬ÆÁÄ»»á»Øµ½µÚÒ»ÐУ¬¶øÊä³öʱ£¬ÓÖÇл»µ½×îºóÒ»Ñù£¬Èç´Ë²»Í£µÄÇл»¡£¡£ > > > > ÓÐûÓкõãµÄ°ì·¨£¿ > > > > > > > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > > > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > > > > > > > >ºÃÏóûÓÐÏֳɵĶ«Î÷£¬Òª×ÔÒÑȥʵÏÖÁË¡£ > > > > > > > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > > > > > > > > >ÎÒ×î½üÔÚʹÓÃwxpython¿ª·¢Ò»¸öguiС¹¤¾ß£¬°ÑËùÓÐÊä³ö£¬°üÀ¨stdoutµÈ¶¼ÖØж¨Ïòµ½Ò»¸ölog´°¿Ú£¬ > > > > > > > > > > > > > > >ʹÓÃTextCtrlʵÏÖ¡£µ«ÏÖÔÚÓÐÒ»¸öÎÊÌ⣬Èç¹ûlogÊý¾ÝºÜ¶à£¬¸Ã´°¿ÚÄÚÈÝ»áÒ»Ö±Ôö¼ÓÏÂÈ¥£¬ÕâÑùÐÔÄܺܲ»ºÃ¡£ > > > > > > > > > > > > > > >ËùÒÔÑ°ÇóÀàËÆwindowsÏÂdos´°¿ÚÄÄÖÖЧ¹û£¬É趨¶àÉÙÐÐÊýºó£¬³¬¹ýÁ˸ÃÉèÖúó£¬×îÀϵľÍ×Ô¶¯Ïûʧ¡£ > > > > > > > > > > > > ÇëÎʸÃÈçºÎʵÏÖÄØ£¿ > > > > > > > > > > > > лл£¡ > > > > > > > > > > > > zzhikang > > > > > > > > > > > > >_________________________________________________________________ > > > > > > Dont just search. Find. Check out the new MSN Search! > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > _______________________________________________ > > > > > > python-chinese list > > > > > > python-chinese at lists.python.cn > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > >-- > > > > >I like python! > > > > >My Donews Blog: http://www.donews.net/limodou > > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > > >_______________________________________________ > > > > >python-chinese list > > > > >python-chinese at lists.python.cn > > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > ----------------------------------------------- > > > > Best regards, > > > > kangzz > > > > > > > > mailto:zzhikang at hotmail.com > > > > Tel : 021-65407754 > > > > MP: 13916928084 > > > > > > > > _________________________________________________________________ > > > > Dont just search. Find. Check out the new MSN Search! > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > > > >-- > > >I like python! > > >My Donews Blog: http://www.donews.net/limodou > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > >_______________________________________________ > > >python-chinese list > > >python-chinese at lists.python.cn > > >http://python.cn/mailman/listinfo/python-chinese > > > > ----------------------------------------------- > > Best regards, > > kangzz > > > > mailto:zzhikang at hotmail.com > > Tel : 021-65407754 > > MP: 13916928084 > > > > _________________________________________________________________ > > On the road to retirement? Check out MSN Life Events for advice on how >to > > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > > > > >-- >I like python! >My Donews Blog: http://www.donews.net/limodou >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 >New Google Maillist: http://groups-beta.google.com/group/python-cn >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
2005年04月09日 星期六 13:50
ûÓÐSetTextÓÐSetValueÂï ÖÁÓÚºÍRemove±È˿죬limodouҲ˵ÁËÊÇ"²ÂÏë"¡£Äã¿ÉÒÔ×Ô¼º×ö¸öʵÑéÊÔÊÔ¿´¡£ On Apr 9, 2005 10:22 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > ÕâÔõô˵£¿ÎÒÔõôûÓÐÕÒµ½TextCtrlÓÐSetTextº¯Êý£¿ > ËæÊÖһд¾ÍÓÐÁË£¿ > > ¸üºÎ¿ö£¬¾ÍËãÓÐSetText£¬Ôõô»á³öÏÖ±ÈRemove¿ì£¿ > ´ÓÃû×ÖÉÏ¿´£¬¾ÍÖªµÀ¸ù±¾²»Ïà¸ÉµÄ¡£ > > >From: limodou <limodou at gmail.com> > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > >To: Python-Chinese <python-chinese at lists.python.cn> > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > >Date: Fri, 8 Apr 2005 15:41:21 +0800 > > > >ÎÒÖ»ÊÇËæÊÖһд£¬SetText()ÊÇÓÃÀ´ÉèÖÃTextCtrlµÄÎı¾ÄÚÈݵġ£ÎÒÏë¿ÉÄÜÕâÑùµÄÖ´ÐÐËٶȻá±ÈÄãʹÓÃremoveµÄËٶȿ죬ÎÒ²ÂÏë¡£ > > > >On Apr 8, 2005 3:02 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > >²»¶Ô°É£¬ÎÒµÄÒâ˼ÊÇÏÂÃæ²»¶ÏÓÐÐÂÐÅÏ¢¼ÓÈëtextctrl£¬Èç¹û×ÜÐÐÊý´ïµ½ºó£¬×îÉÏÃæµÄÒ»ÐÐ×Ô¶¯±»É¾³ý£¬ > > > ÒÔ´ïµ½dos > >window×Ô¶¯È¥µô×îÏÈÒ»ÐУ¬±£³Ötextctrl²»»áÈò»¶ÏÊäÈëµÄÐÅÏ¢Ô½»ýÔ½¶à¡£ > > > > > > settextº¯Êý¸ÉʲôµÄ£¿ > > > > > > >From: limodou <limodou at gmail.com> > > > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > > > >To: Python-Chinese <python-chinese at lists.python.cn> > > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > > >Date: Fri, 8 Apr 2005 10:15:51 +0800 > > > > > > > >ÊDz»ÊDz»ÓÃremove£¬Ê¹ÓÃsettextÖ®ÀàµÄÊÔÒ»ÊÔ¡£ > > > > > > > >On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > ÎÒÓÃtextctrlʵÏÖÁËÒ»¸ö´°¿Ú£¬È»ºó°ÑÊä³öÄÚÈݶ¨Ïò¹ýÈ¥£¬ > > > > > ÔÚtextctrlµÄ > > > > > > > > > > >writeº¯ÊýÖУ¬Åжϵ±Ç°ÐÐÊýÊÇ·ñ³¬¹ýÉ趨ֵ£¬Èç¹û³¬¹ý¾ÍÓÃtextctrlµÄremoveº¯Êý > > > > > È¥µôµÚÒ»ÐС£¡£¡£ > > > > > > > > > > > > > > > >µ«ÔËÐÐʱ£¬¹¦Äܵ½ÊµÏÖÁË£¬µ«ÆÁÄ»²»Í£µÄÉÁ¶¯£¬¹À¼ÆÔÚremoveµÚÒ»Ðк¯Êýʱ£¬ÆÁÄ»»á»Øµ½µÚÒ»ÐУ¬¶øÊä³öʱ£¬ÓÖÇл»µ½×îºóÒ»Ñù£¬Èç´Ë²»Í£µÄÇл»¡£¡£ > > > > > ÓÐûÓкõãµÄ°ì·¨£¿ > > > > > > > > > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > > > > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > > > > > > > > > >ºÃÏóûÓÐÏֳɵĶ«Î÷£¬Òª×ÔÒÑȥʵÏÖÁË¡£ > > > > > > > > > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > > > > > > > > > > > > >ÎÒ×î½üÔÚʹÓÃwxpython¿ª·¢Ò»¸öguiС¹¤¾ß£¬°ÑËùÓÐÊä³ö£¬°üÀ¨stdoutµÈ¶¼ÖØж¨Ïòµ½Ò»¸ölog´°¿Ú£¬ > > > > > > > > > > > > > > > > > > >ʹÓÃTextCtrlʵÏÖ¡£µ«ÏÖÔÚÓÐÒ»¸öÎÊÌ⣬Èç¹ûlogÊý¾ÝºÜ¶à£¬¸Ã´°¿ÚÄÚÈÝ»áÒ»Ö±Ôö¼ÓÏÂÈ¥£¬ÕâÑùÐÔÄܺܲ»ºÃ¡£ > > > > > > > > > > > > > > > > > > >ËùÒÔÑ°ÇóÀàËÆwindowsÏÂdos´°¿ÚÄÄÖÖЧ¹û£¬É趨¶àÉÙÐÐÊýºó£¬³¬¹ýÁ˸ÃÉèÖúó£¬×îÀϵľÍ×Ô¶¯Ïûʧ¡£ > > > > > > > > > > > > > > ÇëÎʸÃÈçºÎʵÏÖÄØ£¿ > > > > > > > > > > > > > > лл£¡ > > > > > > > > > > > > > > zzhikang > > > > > > > > > > > > > > > >_________________________________________________________________ > > > > > > > Dont just search. Find. Check out the new MSN Search! > > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > _______________________________________________ > > > > > > > python-chinese list > > > > > > > python-chinese at lists.python.cn > > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > > >I like python! > > > > > >My Donews Blog: http://www.donews.net/limodou > > > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > > > >New Google Maillist: > http://groups-beta.google.com/group/python-cn > > > > > >_______________________________________________ > > > > > >python-chinese list > > > > > >python-chinese at lists.python.cn > > > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > ----------------------------------------------- > > > > > Best regards, > > > > > kangzz > > > > > > > > > > mailto:zzhikang at hotmail.com > > > > > Tel : 021-65407754 > > > > > MP: 13916928084 > > > > > > > > > > _________________________________________________________________ > > > > > Dont just search. Find. Check out the new MSN Search! > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > > > > > > > > >-- > > > >I like python! > > > >My Donews Blog: http://www.donews.net/limodou > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > >_______________________________________________ > > > >python-chinese list > > > >python-chinese at lists.python.cn > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > ----------------------------------------------- > > > Best regards, > > > kangzz > > > > > > mailto:zzhikang at hotmail.com > > > Tel : 021-65407754 > > > MP: 13916928084 > > > > > > _________________________________________________________________ > > > On the road to retirement? Check out MSN Life Events for advice on how > >to > > > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > > > > > > > > > >-- > >I like python! > >My Donews Blog: http://www.donews.net/limodou > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > >New Google Maillist: http://groups-beta.google.com/group/python-cn > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese > > ----------------------------------------------- > Best regards, > kangzz > > mailto:zzhikang at hotmail.com > Tel : 021-65407754 > MP: 13916928084 > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > -- Qiangning Hong Get Firefox! < http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050409/653df4de/attachment.htm
2005年04月10日 星期日 22:30
ÂíÂí»¢»¢¸ã¶¨¡£ ÖØж¨ÒåTextCtrlµÄwriteº¯Êý£º ÏÈself.Freeze£¬²»ÈÃÆä¸üРÅжϵ±Ç°TextCtrl×ÜÐÐÊý£¬Èç¹û³¬¹ýÉ趨ֵ£¬¾ÍÓÃremoveɾ³ý×îÇ°ÃæµÄ£¬ ¡£¡£¡£ self.ScrollLines(1) self.Thaw£¬½â¶³ ÕâÑù»ù±¾½â¾ö¡£µ«×ܾõµÃÉÔ΢Óе㲻ˬ£¬²»ÊǺÜƽ»¬µÄ¡£ Ò»Ö±ÎÒµÄÄ¿µÄÊÇҪɾ³ý¶àÓàµÄÐУ¬¾ÍËãSetValue±ÈRemove¿ì£¬ ÓкÎÒâÒ壿 ¾ÍºÃ±È£¬ÎÒÒªÔõÑù·Å¸É³Ø×ÓÀïµÄË®£¬±»¸æÖª£¬ÓýøË®±È·ÅË®¿ì¡£¡£¡£ >From: Qiangning Hong <hongqn at gmail.com> >Reply-To: Qiangning Hong <hongqn at gmail.com>, python-chinese at lists.python.cn >To: python-chinese at lists.python.cn >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Sat, 9 Apr 2005 13:50:22 +0800 > >ûÓÐSetTextÓÐSetValueÂï >ÖÁÓÚºÍRemove±È˿죬limodouҲ˵ÁËÊÇ"²ÂÏë"¡£Äã¿ÉÒÔ×Ô¼º×ö¸öʵÑéÊÔÊÔ¿´¡£ > >On Apr 9, 2005 10:22 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > ÕâÔõô˵£¿ÎÒÔõôûÓÐÕÒµ½TextCtrlÓÐSetTextº¯Êý£¿ > > ËæÊÖһд¾ÍÓÐÁË£¿ > > > > ¸üºÎ¿ö£¬¾ÍËãÓÐSetText£¬Ôõô»á³öÏÖ±ÈRemove¿ì£¿ > > ´ÓÃû×ÖÉÏ¿´£¬¾ÍÖªµÀ¸ù±¾²»Ïà¸ÉµÄ¡£ > > > > >From: limodou <limodou at gmail.com> > > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > > >To: Python-Chinese <python-chinese at lists.python.cn> > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > >Date: Fri, 8 Apr 2005 15:41:21 +0800 > > > > > > >ÎÒÖ»ÊÇËæÊÖһд£¬SetText()ÊÇÓÃÀ´ÉèÖÃTextCtrlµÄÎı¾ÄÚÈݵġ£ÎÒÏë¿ÉÄÜÕâÑùµÄÖ´ÐÐËٶȻá±ÈÄãʹÓÃremoveµÄËٶȿ죬ÎÒ²ÂÏë¡£ > > > > > >On Apr 8, 2005 3:02 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > > > > > >²»¶Ô°É£¬ÎÒµÄÒâ˼ÊÇÏÂÃæ²»¶ÏÓÐÐÂÐÅÏ¢¼ÓÈëtextctrl£¬Èç¹û×ÜÐÐÊý´ïµ½ºó£¬×îÉÏÃæµÄÒ»ÐÐ×Ô¶¯±»É¾³ý£¬ > > > > ÒÔ´ïµ½dos > > >window×Ô¶¯È¥µô×îÏÈÒ»ÐУ¬±£³Ötextctrl²»»áÈò»¶ÏÊäÈëµÄÐÅÏ¢Ô½»ýÔ½¶à¡£ > > > > > > > > settextº¯Êý¸ÉʲôµÄ£¿ > > > > > > > > >From: limodou <limodou at gmail.com> > > > > >Reply-To: limodou <limodou at gmail.com>, >python-chinese at lists.python.cn > > > > >To: Python-Chinese <python-chinese at lists.python.cn> > > > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > > > >Date: Fri, 8 Apr 2005 10:15:51 +0800 > > > > > > > > > >ÊDz»ÊDz»ÓÃremove£¬Ê¹ÓÃsettextÖ®ÀàµÄÊÔÒ»ÊÔ¡£ > > > > > > > > > >On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > ÎÒÓÃtextctrlʵÏÖÁËÒ»¸ö´°¿Ú£¬È»ºó°ÑÊä³öÄÚÈݶ¨Ïò¹ýÈ¥£¬ > > > > > > ÔÚtextctrlµÄ > > > > > > > > > > > > > > >writeº¯ÊýÖУ¬Åжϵ±Ç°ÐÐÊýÊÇ·ñ³¬¹ýÉ趨ֵ£¬Èç¹û³¬¹ý¾ÍÓÃtextctrlµÄremoveº¯Êý > > > > > > È¥µôµÚÒ»ÐС£¡£¡£ > > > > > > > > > > > > > > > > > > > > >µ«ÔËÐÐʱ£¬¹¦Äܵ½ÊµÏÖÁË£¬µ«ÆÁÄ»²»Í£µÄÉÁ¶¯£¬¹À¼ÆÔÚremoveµÚÒ»Ðк¯Êýʱ£¬ÆÁÄ»»á»Øµ½µÚÒ»ÐУ¬¶øÊä³öʱ£¬ÓÖÇл»µ½×îºóÒ»Ñù£¬Èç´Ë²»Í£µÄÇл»¡£¡£ > > > > > > ÓÐûÓкõãµÄ°ì·¨£¿ > > > > > > > > > > > > >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ > > > > > > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > > > > > > > > > > > >ºÃÏóûÓÐÏֳɵĶ«Î÷£¬Òª×ÔÒÑȥʵÏÖÁË¡£ > > > > > > > > > > > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> >wrote: > > > > > > > > > > > > > > > > > > > > > > > >ÎÒ×î½üÔÚʹÓÃwxpython¿ª·¢Ò»¸öguiС¹¤¾ß£¬°ÑËùÓÐÊä³ö£¬°üÀ¨stdoutµÈ¶¼ÖØж¨Ïòµ½Ò»¸ölog´°¿Ú£¬ > > > > > > > > > > > > > > > > > > > > > > > >ʹÓÃTextCtrlʵÏÖ¡£µ«ÏÖÔÚÓÐÒ»¸öÎÊÌ⣬Èç¹ûlogÊý¾ÝºÜ¶à£¬¸Ã´°¿ÚÄÚÈÝ»áÒ»Ö±Ôö¼ÓÏÂÈ¥£¬ÕâÑùÐÔÄܺܲ»ºÃ¡£ > > > > > > > > > > > > > > > > > > > > > > > >ËùÒÔÑ°ÇóÀàËÆwindowsÏÂdos´°¿ÚÄÄÖÖЧ¹û£¬É趨¶àÉÙÐÐÊýºó£¬³¬¹ýÁ˸ÃÉèÖúó£¬×îÀϵľÍ×Ô¶¯Ïûʧ¡£ > > > > > > > > > > > > > > > > ÇëÎʸÃÈçºÎʵÏÖÄØ£¿ > > > > > > > > > > > > > > > > лл£¡ > > > > > > > > > > > > > > > > zzhikang > > > > > > > > > > > > > > > > > > >_________________________________________________________________ > > > > > > > > Dont just search. Find. Check out the new MSN Search! > > > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > python-chinese list > > > > > > > > python-chinese at lists.python.cn > > > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > > > >I like python! > > > > > > >My Donews Blog: http://www.donews.net/limodou > > > > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > > > > >New Google Maillist: > > http://groups-beta.google.com/group/python-cn > > > > > > >_______________________________________________ > > > > > > >python-chinese list > > > > > > >python-chinese at lists.python.cn > > > > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > ----------------------------------------------- > > > > > > Best regards, > > > > > > kangzz > > > > > > > > > > > > mailto:zzhikang at hotmail.com > > > > > > Tel : 021-65407754 > > > > > > MP: 13916928084 > > > > > > > > > > > > >_________________________________________________________________ > > > > > > Dont just search. Find. Check out the new MSN Search! > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > >I like python! > > > > >My Donews Blog: http://www.donews.net/limodou > > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > > >_______________________________________________ > > > > >python-chinese list > > > > >python-chinese at lists.python.cn > > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > ----------------------------------------------- > > > > Best regards, > > > > kangzz > > > > > > > > mailto:zzhikang at hotmail.com > > > > Tel : 021-65407754 > > > > MP: 13916928084 > > > > > > > > _________________________________________________________________ > > > > On the road to retirement? Check out MSN Life Events for advice on >how > > >to > > > > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > > > > > > > > > > > > > > >-- > > >I like python! > > >My Donews Blog: http://www.donews.net/limodou > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > >_______________________________________________ > > >python-chinese list > > >python-chinese at lists.python.cn > > >http://python.cn/mailman/listinfo/python-chinese > > > > ----------------------------------------------- > > Best regards, > > kangzz > > > > mailto:zzhikang at hotmail.com > > Tel : 021-65407754 > > MP: 13916928084 > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today - it's >FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > >-- >Qiangning Hong >Get Firefox! < >http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
2005年04月11日 星期一 08:53
wx.TextCtrl又不是你自己写的,不可能完全符合你的思路。 有闪烁是因为改变TextCtrl的Value时需要repaint。这个过程python比较慢是没办法的事情,解决之道也只能在TextCtrl提供的函数里自己摸索一个比较好的办法。 带着镣铐的舞蹈。 On Apr 10, 2005 10:30 PM, kanchy kang <zzhikang at hotmail.com> wrote: > 一直我的目的是要删除多余的行,就算SetValue比Remove快, > 有何意义? > 就好比,我要怎样放干池子里的水,被告知,用进水比放水快。。。 > > >From: Qiangning Hong <hongqn at gmail.com> > >Reply-To: Qiangning Hong <hongqn at gmail.com>, python-chinese at lists.python.cn > >To: python-chinese at lists.python.cn > >Subject: Re: [python-chinese] 怎样实现类 似dos窗口的log? > >Date: Sat, 9 Apr 2005 13:50:22 +0800 > > > >没有SetText有SetValue嘛 > >至于和Remove比谁快,limodou也说了是"猜想"。你可以自己做个实验试试看。 > > > >On Apr 9, 2005 10:22 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > 这怎么说?我怎么没有找到TextCtrl有SetText函数? > > > 随手一写就有了? > > > > > > 更何况,就算有SetText,怎么会出现比Remove快? > > > 从名字上看,就知道根本不相干的。 > > > > > > >From: limodou <limodou at gmail.com> > > > >Reply-To: limodou <limodou at gmail.com>, python-chinese at lists.python.cn > > > >To: Python-Chinese <python-chinese at lists.python.cn> > > > >Subject: Re: [python-chinese] 怎样实现类 似dos窗口的log? > > > >Date: Fri, 8 Apr 2005 15:41:21 +0800 > > > > > > > > > >我只是随手一写,SetText()是用来设置TextCtrl的文本内容的。我想可能这样的执行速度会比你使用remove的速度快,我猜想。 > > > > > > > >On Apr 8, 2005 3:02 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > > > > > > > > > >不对吧,我的意思是下面不断有新信息加入textctrl,如果总行数达到后,最上面的一行自动被删除, > > > > > 以达到dos > > > >window自动去掉最先一行,保持textctrl不会让不断输入的信息越积越多。 > > > > > > > > > > settext函数干什么的? > > > > > > > > > > >From: limodou <limodou at gmail.com> > > > > > >Reply-To: limodou <limodou at gmail.com>, > >python-chinese at lists.python.cn > > > > > >To: Python-Chinese <python-chinese at lists.python.cn> > > > > > >Subject: Re: [python-chinese] 怎样实现类 似dos窗口的log? > > > > > >Date: Fri, 8 Apr 2005 10:15:51 +0800 > > > > > > > > > > > >是不是不用remove,使用settext之类的试一试。 > > > > > > > > > > > >On Apr 8, 2005 10:08 AM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > > > > 我用textctrl实现了一个窗口,然后把输出内容定向过去, > > > > > > > 在textctrl的 > > > > > > > > > > > > > > > > > > >write函数中,判断当前行数是否超过设定值,如果超过就用textctrl的remove函数 > > > > > > > 去掉第一行。。。 > > > > > > > > > > > > > > > > > > > > > > > > > >但运行时,功能到实现了,但屏幕不停的闪动,估计在remove第一行函数时,屏幕会回到第一行,而输出时,又切换到最后一样,如此不停的切换。。 > > > > > > > 有没有好点的办法? > > > > > > > > > > > > > > >Subject: Re: [python-chinese] 怎样实现类 似dos窗口的log? > > > > > > > >Date: Thu, 7 Apr 2005 16:12:55 +0800 > > > > > > > > > > > > > > > >好象没有现成的东西,要自已去实现了。 > > > > > > > > > > > > > > > >On Apr 7, 2005 3:56 PM, kanchy kang <zzhikang at hotmail.com> > >wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > >我最近在使用wxpython开发一个gui小工具,把所有输出,包括stdout等都重新定向到一个log窗口, > > > > > > > > > > > > > > > > > > > > > > > > > > > > >使用TextCtrl实现。但现在有一个问题,如果log数据很多,该窗口内容会一直增加下去,这样性能很不好。 > > > > > > > > > > > > > > > > > > > > > > > > > > > > >所以寻求类似windows下dos窗口哪种效果,设定多少行数后,超过了该设置后,最老的就自动消失。 > > > > > > > > > > > > > > > > > > 请问该如何实现呢? > > > > > > > > > > > > > > > > > > 谢谢! > > > > > > > > > > > > > > > > > > zzhikang > > > > > > > > > > > > > > > > > > > > > >_________________________________________________________________ > > > > > > > > > Don抰 just search. Find. Check out the new MSN Search! > > > > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > python-chinese list > > > > > > > > > python-chinese at lists.python.cn > > > > > > > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > > > > >I like python! > > > > > > > >My Donews Blog: http://www.donews.net/limodou > > > > > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > > > > > >New Google Maillist: > > > http://groups-beta.google.com/group/python-cn > > > > > > > >_______________________________________________ > > > > > > > >python-chinese list > > > > > > > >python-chinese at lists.python.cn > > > > > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------- > > > > > > > Best regards, > > > > > > > kangzz > > > > > > > > > > > > > > mailto:zzhikang at hotmail.com > > > > > > > Tel : 021-65407754 > > > > > > > MP: 13916928084 > > > > > > > > > > > > > > > >_________________________________________________________________ > > > > > > > Don抰 just search. Find. Check out the new MSN Search! > > > > > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > > >I like python! > > > > > >My Donews Blog: http://www.donews.net/limodou > > > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > > > >_______________________________________________ > > > > > >python-chinese list > > > > > >python-chinese at lists.python.cn > > > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > ----------------------------------------------- > > > > > Best regards, > > > > > kangzz > > > > > > > > > > mailto:zzhikang at hotmail.com > > > > > Tel : 021-65407754 > > > > > MP: 13916928084 > > > > > > > > > > _________________________________________________________________ > > > > > On the road to retirement? Check out MSN Life Events for advice on > >how > > > >to > > > > > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > > > > > > > > > > > > > > > > > > > > >-- > > > >I like python! > > > >My Donews Blog: http://www.donews.net/limodou > > > >My Sina Blog: http://blog.sina.com.cn/blog/1148608914 > > > >New Google Maillist: http://groups-beta.google.com/group/python-cn > > > >_______________________________________________ > > > >python-chinese list > > > >python-chinese at lists.python.cn > > > >http://python.cn/mailman/listinfo/python-chinese > > > > > > ----------------------------------------------- > > > Best regards, > > > kangzz > > > > > > mailto:zzhikang at hotmail.com > > > Tel : 021-65407754 > > > MP: 13916928084 > > > > > > _________________________________________________________________ > > > Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > _______________________________________________ > > > python-chinese list > > > python-chinese at lists.python.cn > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > >-- > >Qiangning Hong > >Get Firefox! < > >http://www.spreadfirefox.com/?q=affiliates&id;=67907&t;=1> > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese > > ----------------------------------------------- > Best regards, > kangzz > > mailto:zzhikang at hotmail.com > Tel : 021-65407754 > MP: 13916928084 > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar �get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >
2005年04月11日 星期一 11:01
On Apr 10, 2005 10:30 PM, kanchy kang <zzhikang at hotmail.com> wrote: [snip] > 一直我的目的是要删除多余的行,就算SetValue比Remove快, > 有何意义? > 就好比,我要怎样放干池子里的水,被告知,用进水比放水快。。。 > 看来你是真没弄懂limodou要说什么。 SetValue可不是进水,而是彻底换水。你先把要换的水在内存里准备好了,一次换进去。 也许比你进一点新水,再放一点老水快。 -- Qiangning Hong Get Firefox! < http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050411/b59c729d/attachment.html
2005年04月11日 星期一 12:52
¿ÉÄÜÊÇÎÒÀí½âwxpython²»É½Ó´¥²»µ½Ò»¸öÔÂʱ¼ä¡£ Ô±¾ÎÒµÄÄ¿µÄÊÇ£º °ÑËùÓÐÊä³ö¶¨Ïòµ½Ò»¸öTextCtrl´°¿Ú¡£´ó¼Ò¶¼ÖªµÀ£¬Ã¿¸öpython gui³ÌÐòûÓбàÒëÔËÐж¼ÓÐÁ½¸ö´°¿Ú£¬ Ò»¸ödosÆô¶¯´°¿Ú£¬Êä³öËùÓÐÖ¸Ïòsys.stdoutµÈÄÚÈݶ«Î÷£¬±ÈÈçprint xxxx¾ÍÊä³öµ½dos´°¿Ú¡£ ¶øÎÒµÄÄ¿µÄ¾ÍÊÇÏë°Ñsys.stdoutµÄ¶«Î÷Ö±½ÓÊä³öµ½Ò»¸ögui´°¿ÚÖС£ ËùÒÔ£¬ÎÒ´´½¨ÁËÒ»¸öTextCtrl´°¿Ú£¬È»ºó°Ñsys.stdoutÖض¨Ïòµ½Õâ¸ö¿Õ¼äÖС£ µ«ÊÇ£¬ÏÖÔÚ³öÏÖÁËÒ»¸öÎÊÌ⣬Èç¹ûÊÇÆÕͨTextCtrl(non-RICH)£¬ÓÐÒ»¸öÄÚÈÝ´óСÏÞÖÆ£¬³¬¹ýÁ˾ÍÏÔʾ²»³öÀ´¡£¶øTextCtrl RICHģʽ£¬¾Ý˵ûÓÐÏÞÖÆ£¬»òÏÞÖƸü¼Ó¿íËÉ¡£µ«Êä³öÄÚÈݲ»Ó¦¸ÃÎÞÏÞ±£Áô£¬ÕâЩ¶«Î÷¶¼ÊÇ·ÅÔÚÄÚ´æÖС£ËùÒÔ£¬ ¼òµ¥µÄ˵Ï룬ʵÏÖÒ»¸öÀàËÆDOS´°¿ÚµÄ¹¦ÄÜ£¬¶¨ÒåÒ»¸öÐÐÊý£¬³¬¹ýÁË£¬¾ÍÈ¥³ý×îÀϵÄÐУ¬ÐÂÔö¼ÓµÄÐж¼ÊÇÏÔʾÔÚ×îÏÂÃæ¡£ Ê×ÏÈ£¬Ã¿Ìõprint Óï¾ä£¬¶¼ÊǼ´Ê±µÄÊä³öµ½TextCtrlÖУ¬²¢·Ç»ýÀÛµ½Ò»¶¨³Ì¶È²ÅÓÃSetValueʲôµÄ·Å½øÈ¥¡£ ÎÒʼÖÕÎÞ·¨Àí½âÖîλµÄ½âÊÍ£¬£¨ÉõÖÁ¾õµÃÖîλ¸ù±¾Ã»ÓÐÀí½âÎÒÒªµÄ¶«Î÷£¬»òÕßÎÒûÓÐ˵Çå³þ£© ±ÈÈ磺ÎÒÒѾÏÔʾÁË1000ÌõÊý¾ÝÔÚTextCtrlÖУ¬È»ºóÊä³ö1001Ìõ£¬²¢É¾³ý×îÀϵĵÚ1ÐУ¬ ΪʲôÖî뽨ÒéÎÒÒª°ÑÇ°Ãæ1000Ðж¼ÄóöÀ´£¬È¥³ýµÚÒ»ÐУ¬È»ºó¼ÓÈëµÚ1001ÐУ¬È»ºóÓÃSetValue·Å½øÈ¥£¿ ΪʲôÕâÑù¿ì£¿ ±ðµÄ²»Ëµ£¬ÐÂÔö¼ÓµÄÒ»ÐÐÏÔʾÔÚ×îÏÂÃ棬 ÎÒÒªµÄ¾ÍÊǼòµ¥ÊµÏÖÀàËÆdos´°¿ÚµÄ¹¦ÄÜ£¡£¡£¡£¡ >From: Qiangning Hong <hongqn at gmail.com> >Reply-To: Qiangning Hong <hongqn at gmail.com>, python-chinese at lists.python.cn >To: python-chinese at lists.python.cn >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Mon, 11 Apr 2005 11:01:15 +0800 > >On Apr 10, 2005 10:30 PM, kanchy kang <zzhikang at hotmail.com> wrote: >[snip] > > > Ò»Ö±ÎÒµÄÄ¿µÄÊÇҪɾ³ý¶àÓàµÄÐУ¬¾ÍËãSetValue±ÈRemove¿ì£¬ > > ÓкÎÒâÒ壿 > > ¾ÍºÃ±È£¬ÎÒÒªÔõÑù·Å¸É³Ø×ÓÀïµÄË®£¬±»¸æÖª£¬ÓýøË®±È·ÅË®¿ì¡£¡£¡£ > > > >¿´À´ÄãÊÇÕæûŪ¶®limodouҪ˵ʲô¡£ > >SetValue¿É²»ÊǽøË®£¬¶øÊdz¹µ×»»Ë®¡£ÄãÏÈ°ÑÒª»»µÄË®ÔÚÄÚ´æÀï×¼±¸ºÃÁË£¬Ò»´Î»»½øÈ¥¡£ >Ò²Ðí±ÈÄã½øÒ»µãÐÂË®£¬ÔÙ·ÅÒ»µãÀÏË®¿ì¡£ > >-- >Qiangning Hong >Get Firefox! < >http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
2005年04月11日 星期一 13:02
要达到这个目的,已知的有2种方法: 1、添加新行到最后面,然后判断行数是否超标,如果超了,把前面部分Select起 来,替换成空字符串或删除(如果有这功能的话) 2、把所有内容读出来,加上新行,判断是否行数超过,处理好了再SetValue回去。 我不觉得别人提的方法有什么不好,我只知道一点:先要有思路,然后去实现,再 做性能上的优化,有多个方案的话,也要实做出来去比较性能。而不是在这里空争论。 “我要的就是简单实现类似dos窗口的功能!!!! ” 那你就去实现,打这么多字的时间早可以实现好几种方案了。 kanchy kang 写道: > 可能是我理解wxpython不深,接触不到一个月时间。 > 原本我的目的是: > 把所有输出定向到一个TextCtrl窗口。大家都知道,每个python gui程序没有编 > 译运行都有两个窗口, > 一个dos启动窗口,输出所有指向sys.stdout等内容东西,比如print xxxx就输 > 出到dos窗口。 > 而我的目的就是想把sys.stdout的东西直接输出到一个gui窗口中。 > 所以,我创建了一个TextCtrl窗口,然后把sys.stdout重定向到这个空间中。 > > 但是,现在出现了一个问题,如果是普通TextCtrl(non-RICH),有一个内容大小 > 限制,超过了就显示不出来。而TextCtrl RICH模式,据说没有限制,或限制更 > 加宽松。但输出内容不应该无限保留,这些东西都是放在内存中。所以, > 简单的说想,实现一个类似DOS窗口的功能,定义一个行数,超过了,就去除最 > 老的行,新增加的行都是显示在最下面。 > > 首先,每条print 语句,都是即时的输出到TextCtrl中,并非积累到一定程度才 > 用SetValue什么的放进去。 > 我始终无法理解诸位的解释,(甚至觉得诸位根本没有理解我要的东西,或者我 > 没有说清楚) > 比如:我已经显示了1000条数据在TextCtrl中,然后输出1001条,并删除最老的 > 第1行, > 为什么诸位建议我要把前面1000行都拿出来,去除第一行,然后加入第1001行, > 然后用SetValue放进去? > 为什么这样快? > 别的不说,新增加的一行显示在最下面, > 我要的就是简单实现类似dos窗口的功能!!!! > > >> From: Qiangning Hong <hongqn at gmail.com> >> Reply-To: Qiangning Hong <hongqn at gmail.com>, >> python-chinese at lists.python.cn >> To: python-chinese at lists.python.cn >> Subject: Re: [python-chinese] 怎样实现类 似dos窗口的log? >> Date: Mon, 11 Apr 2005 11:01:15 +0800 >> >> On Apr 10, 2005 10:30 PM, kanchy kang <zzhikang at hotmail.com> wrote: >> [snip] >> >> > 一直我的目的是要删除多余的行,就算SetValue比Remove快, >> > 有何意义? >> > 就好比,我要怎样放干池子里的水,被告知,用进水比放水快。。。 >> > >> >> 看来你是真没弄懂limodou要说什么。 >> >> SetValue可不是进水,而是彻底换水。你先把要换的水在内存里准备好了,一 >> 次换进去。 >> 也许比你进一点新水,再放一点老水快。 >> >> -- >> Qiangning Hong >> Get Firefox! < >> http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> >> _______________________________________________ >> python-chinese list >> python-chinese at lists.python.cn >> http://python.cn/mailman/listinfo/python-chinese > > > > ----------------------------------------------- > Best regards, > kangzz > > mailto:zzhikang at hotmail.com > Tel : 021-65407754 > MP: 13916928084 > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > -- 座右铭:不怕不会,就怕不会搜! 提点建议:大家把自己的邮件客户端设置一下,这里好多邮件是乱码,如果你们看到我的邮件是乱码,也请通知我一下,以免影响交流。
2005年04月11日 星期一 15:14
On Apr 11, 2005 12:52 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > 原本我的目的是: > 把所有输出定向到一个TextCtrl窗口。大家都知道,每个python [snip] 你的目标描述的很清楚。我想我没有误解你的意思。 其实这个需求很正常,我以前就实现过类似的功能,不过采取的方法是重载ListCtrl,给它增加一个append_log方法。但仅仅是用来显示系统日志,对速度和自动滚动都没有要求,而且是倒着显示的(最新的数据显示在最上方)。代码附在最后。 首先,每条print > 语句,都是即时的输出到TextCtrl中,并非积累到一定程度才用SetValue什么的放进去。 为什么一定要积累到一定程度才能SetValue? 我始终无法理解诸位的解释,(甚至觉得诸位根本没有理解我要的东西,或者我没有说清楚) > 比如:我已经显示了1000条数据在TextCtrl中,然后输出1001条,并删除最老的第1行, > 为什么诸位建议我要把前面1000行都拿出来,去除第一行,然后加入第1001行,然后用SetValue放进去? 没必要非要把数据都从TextCtrl中取出来再操作,你完全可以把这一千行数据预先保存在内存里,做完操作后SetValue。把TextCtrl当作这些数据的一个View。understand? 为什么这样快? 没有人说这样一定快。现在别人都没有这个需求,因此没有动机也没有义务去实现代码然后比较速度。最有动机去编码比较这几种算法优劣的人是你。至于你去不去写代码进行比较,以及会不会把比较结果反馈到邮件列表里来和大家分享,那一切都是up to you了。 如果说为什么有可能SetValue的方法比Remove快的话,我想有这么几种可能性: - SetValue操作本身比Remove操作快(比如可能Remove需要修改内存内容,而SetValue只需要修改指针) - Remove方法会引起显示刷新或光标移动,导致多余的cpu cycle - 可以用更加pythonic的方式处理数据(比如使用list表示数据),在判断是否超行和添加/删除行时可以比使用TextCtrl内置方式更加快速。 至于是不是这样,那不做实验谁也不知道。 别的不说,新增加的一行显示在最下面, > 我要的就是简单实现类似dos窗口的功能!!!! > 恩,ok,知道了,你想要。 ……不过我没有现成的给你。 附我以前写的一个ListCtrl的实现,不过那并不完全符合你的要求。有用者自取之。licensed as public domain. import wx import wx.lib.mixins.listctrl as listmix class LogList(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin): """A listbox to show log entries.""" def __init__(self, parent, id=-1, capability=500): wx.ListCtrl.__init__(self, parent, id, style=wx.LC_REPORT|wx.LC_NO_HEADER |wx.LC_SINGLE_SEL) listmix.ListCtrlAutoWidthMixin.__init__(self) self.capability = capability self.InsertColumn(0, '') self.__mouse_on_item = None self.Bind(wx.EVT_MOTION, self.on_move, self) def on_move(self, evt): """Show the entry under mouse as tooltip""" item_id, flag = self.HitTest(evt.GetPosition()) if flag & wx.LIST_HITTEST_ONITEMLABEL: if self.__mouse_on_item != item_id: tooltip = self.GetItemText(item_id).strip() self.SetToolTipString(tooltip) self.__mouse_on_item = item_id self.SetItemState(item_id, wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED) elif self.__mouse_on_item is not None: self.SetToolTipString('') self.__mouse_on_item = None evt.Skip() def append_log(self, logstr): """Insert logstr at the topmost. Remove old entries if exceeds the capability """ self.InsertStringItem(0, logstr.strip()) if self.GetItemCount() > self.capability: self.DeleteItem(self.capability) -- Qiangning Hong Get Firefox! < http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050411/802423c5/attachment.htm
2005年04月11日 星期一 18:18
你的思路很清楚。但我想你用wxTextCtrl可能不太合适,因为wxTextCtrl对于行Line的操作很弱。 像Qiangning Hong兄用ListCtrl实现就很方便。
2005年04月11日 星期一 20:08
ÏÖÔÚ°´ÕÕÎÒ˵µÄ·½·¨£¬¹¦ÄÜÉÏ»ù±¾Ã»ÓÐÎÊÌâ¡£¾ÍÊǹö¶¯Ê±ÓеãÉÁ˸¡£¡£¡£ ¶ødos´°¿Ú×Ô¶¯¹ö¶¯Ê±¾ÍºÜƽ»¬¡£¡£¡£ ËùÒÔÉÔ΢Óе㲻ÀíÏë¡£ ÓпÕÎÒÊÔÊÔlistctrl... 3x!! >From: Jason Liu <telecomliu at gmail.com> >Reply-To: Jason Liu <telecomliu at gmail.com>, python-chinese at lists.python.cn >To: python-chinese at lists.python.cn >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Mon, 11 Apr 2005 18:18:49 +0800 > >ÄãµÄ˼·ºÜÇå³þ¡£µ«ÎÒÏëÄãÓÃwxTextCtrl¿ÉÄܲ»Ì«ºÏÊÊ£¬ÒòΪwxTextCtrl¶ÔÓÚÐÐLineµÄ²Ù×÷ºÜÈõ¡£ >ÏñQiangning HongÐÖÓÃListCtrlʵÏ־ͺܷ½±ã¡£ >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
2005年04月11日 星期一 21:39
лл¡£ ÎÒÖªµÀÁË¡£ listctrlÓÐÒ»¸ö²»Ì«ºÃµÄµØ·½£¬¾ÍÊÇÖØж¨Ïò¹ýÀ´ºó£¬ÔÀ´µÄprintµÈÓï¾äËƺõûÓа취¡£¡£¡£Óᣡ£ ӦΪlistctrlûÓÐwriteº¯Êý¡£¡£¡£ ¶øappend_log·½·¨£¬±ØÐëÊÇÒÔºóд³ÌÐò¹ý³ÌÖУ¬ÐèÒª¼Ólog£¬ÊÖ¶¯Ð´append_logº¯Êý¡£ ¶øTextCtrl±¾Éí¾ÍÓÐwrite·½·¨¡£¡£¡£ÕâÑù°Ñsys¡£stdoutÖ±½Ó¾Í¿ÉÒÔת¹ýÀ´¡£¡£¡£²»ÐèÒªÐÞ¸ÄÒÑÓеĶ«Î÷¡£¡£ ¶ÔÁË£¬Ëƺõ¿ÉÒÔͨ¹ý¶ÔlistctrlÌí¼Ówrite·½·¨¾Í¿ÉÒÔÈÃprintµ÷ÓÃÁË¡£¡£¡£ËƺõÒ²¿ÉÒÔ½â¾ö¡£ ÎÒËù˵µÄ¹ö¶¯¾ÍÊǸúdos´°¿ÚÒ»Ñù£¬×îеÄÏÔʾÔÚ×îÏÂÃæ¡£ ллÄãµÄ´úÂë¡£ >From: Qiangning Hong <hongqn at gmail.com> >Reply-To: Qiangning Hong <hongqn at gmail.com> >To: kanchy kang <zzhikang at hotmail.com> >CC: python-chinese at lists.python.cn >Subject: Re: [python-chinese] ÔõÑùʵÏÖÀà ËÆdos´°¿ÚµÄlog£¿ >Date: Mon, 11 Apr 2005 15:14:13 +0800 > >On Apr 11, 2005 12:52 PM, kanchy kang <zzhikang at hotmail.com> wrote: > > > > Ô±¾ÎÒµÄÄ¿µÄÊÇ£º > > °ÑËùÓÐÊä³ö¶¨Ïòµ½Ò»¸öTextCtrl´°¿Ú¡£´ó¼Ò¶¼ÖªµÀ£¬Ã¿¸öpython > > >[snip] > >ÄãµÄÄ¿±êÃèÊöµÄºÜÇå³þ¡£ÎÒÏëÎÒûÓÐÎó½âÄãµÄÒâ˼¡£ >ÆäʵÕâ¸öÐèÇóºÜÕý³££¬ÎÒÒÔÇ°¾ÍʵÏÖ¹ýÀàËƵŦÄÜ£¬²»¹ý²ÉÈ¡µÄ·½·¨ÊÇÖØÔØListCtrl£¬¸øËüÔö¼ÓÒ»¸öappend_log·½·¨¡£µ«½ö½öÊÇÓÃÀ´ÏÔʾϵͳÈÕÖ¾£¬¶ÔËٶȺÍ×Ô¶¯¹ö¶¯¶¼Ã»ÓÐÒªÇ󣬶øÇÒÊǵ¹×ÅÏÔʾµÄ£¨×îеÄÊý¾ÝÏÔʾÔÚ×îÉÏ·½£©¡£´úÂ븽ÔÚ×îºó¡£ > >Ê×ÏÈ£¬Ã¿Ìõprint > > >Óï¾ä£¬¶¼ÊǼ´Ê±µÄÊä³öµ½TextCtrlÖУ¬²¢·Ç»ýÀÛµ½Ò»¶¨³Ì¶È²ÅÓÃSetValueʲôµÄ·Å½øÈ¥¡£ > > >Ϊʲôһ¶¨Òª»ýÀÛµ½Ò»¶¨³Ì¶È²ÅÄÜSetValue£¿ > >ÎÒʼÖÕÎÞ·¨Àí½âÖîλµÄ½âÊÍ£¬£¨ÉõÖÁ¾õµÃÖîλ¸ù±¾Ã»ÓÐÀí½âÎÒÒªµÄ¶«Î÷£¬»òÕßÎÒûÓÐ˵Çå³þ£© > > >±ÈÈ磺ÎÒÒѾÏÔʾÁË1000ÌõÊý¾ÝÔÚTextCtrlÖУ¬È»ºóÊä³ö1001Ìõ£¬²¢É¾³ý×îÀϵĵÚ1ÐУ¬ > > >ΪʲôÖî뽨ÒéÎÒÒª°ÑÇ°Ãæ1000Ðж¼ÄóöÀ´£¬È¥³ýµÚÒ»ÐУ¬È»ºó¼ÓÈëµÚ1001ÐУ¬È»ºóÓÃSetValue·Å½øÈ¥£¿ > > >û±ØÒª·ÇÒª°ÑÊý¾Ý¶¼´ÓTextCtrlÖÐÈ¡³öÀ´ÔÙ²Ù×÷£¬ÄãÍêÈ«¿ÉÒÔ°ÑÕâһǧÐÐÊý¾ÝÔ¤Ïȱ£´æÔÚÄÚ´æÀ×öÍê²Ù×÷ºóSetValue¡£°ÑTextCtrlµ±×÷ÕâЩÊý¾ÝµÄÒ»¸öView¡£understand? > >ΪʲôÕâÑù¿ì£¿ > > >ûÓÐÈË˵ÕâÑùÒ»¶¨¿ì¡£ÏÖÔÚ±ðÈ˶¼Ã»ÓÐÕâ¸öÐèÇó£¬Òò´ËûÓж¯»úҲûÓÐÒåÎñȥʵÏÖ´úÂëÈ»ºó±È½ÏËٶȡ£×îÓж¯»úÈ¥±àÂë±È½ÏÕ⼸ÖÖËã·¨ÓÅÁÓµÄÈËÊÇÄã¡£ÖÁÓÚÄãÈ¥²»È¥Ð´´úÂë½øÐбȽϣ¬ÒÔ¼°»á²»»á°Ñ±È½Ï½á¹û·´À¡µ½ÓʼþÁбíÀïÀ´ºÍ´ó¼Ò·ÖÏí£¬ÄÇÒ»Çж¼ÊÇup >to youÁË¡£ > >Èç¹û˵ΪʲôÓпÉÄÜSetValueµÄ·½·¨±ÈRemove¿ìµÄ»°£¬ÎÒÏëÓÐÕâô¼¸ÖÖ¿ÉÄÜÐÔ£º >- >SetValue²Ù×÷±¾Éí±ÈRemove²Ù×÷¿ì£¨±ÈÈç¿ÉÄÜRemoveÐèÒªÐÞ¸ÄÄÚ´æÄÚÈÝ£¬¶øSetValueÖ»ÐèÒªÐÞ¸ÄÖ¸Õ룩 >- Remove·½·¨»áÒýÆðÏÔʾˢлò¹â±êÒƶ¯£¬µ¼Ö¶àÓàµÄcpu cycle >- >¿ÉÒÔÓøü¼ÓpythonicµÄ·½Ê½´¦ÀíÊý¾Ý£¨±ÈÈçʹÓÃlist±íʾÊý¾Ý£©£¬ÔÚÅжÏÊÇ·ñ³¬ÐкÍÌí¼Ó/ɾ³ýÐÐʱ¿ÉÒÔ±ÈʹÓÃTextCtrlÄÚÖ÷½Ê½¸ü¼Ó¿ìËÙ¡£ > >ÖÁÓÚÊDz»ÊÇÕâÑù£¬ÄDz»×öʵÑéËÒ²²»ÖªµÀ¡£ > >±ðµÄ²»Ëµ£¬ÐÂÔö¼ÓµÄÒ»ÐÐÏÔʾÔÚ×îÏÂÃ棬 > > ÎÒÒªµÄ¾ÍÊǼòµ¥ÊµÏÖÀàËÆdos´°¿ÚµÄ¹¦ÄÜ£¡£¡£¡£¡ > > > >¶÷£¬ok£¬ÖªµÀÁË£¬ÄãÏëÒª¡£ >¡¡²»¹ýÎÒûÓÐÏֳɵĸøÄã¡£ > >¸½ÎÒÒÔǰдµÄÒ»¸öListCtrlµÄʵÏÖ£¬²»¹ýÄDz¢²»ÍêÈ«·ûºÏÄãµÄÒªÇó¡£ÓÐÓÃÕß×ÔÈ¡Ö®¡£licensed >as public domain. > >import wx >import wx.lib.mixins.listctrl as listmix > >class LogList(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin): >"""A listbox to show log entries.""" >def __init__(self, parent, id=-1, capability=500): >wx.ListCtrl.__init__(self, parent, id, >style=wx.LC_REPORT|wx.LC_NO_HEADER >|wx.LC_SINGLE_SEL) >listmix.ListCtrlAutoWidthMixin.__init__(self) >self.capability = capability > >self.InsertColumn(0, '') > >self.__mouse_on_item = None >self.Bind(wx.EVT_MOTION, self.on_move, self) > >def on_move(self, evt): >"""Show the entry under mouse as tooltip""" >item_id, flag = self.HitTest(evt.GetPosition()) >if flag & wx.LIST_HITTEST_ONITEMLABEL: >if self.__mouse_on_item != item_id: >tooltip = self.GetItemText(item_id).strip() >self.SetToolTipString(tooltip) >self.__mouse_on_item = item_id >self.SetItemState(item_id, wx.LIST_STATE_SELECTED, >wx.LIST_STATE_SELECTED) >elif self.__mouse_on_item is not None: >self.SetToolTipString('') >self.__mouse_on_item = None >evt.Skip() > >def append_log(self, logstr): >"""Insert logstr at the topmost. >Remove old entries if exceeds the capability >""" >self.InsertStringItem(0, logstr.strip()) >if self.GetItemCount() > self.capability: >self.DeleteItem(self.capability) > > >-- >Qiangning Hong >Get Firefox! < >http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> ----------------------------------------------- Best regards, kangzz mailto:zzhikang at hotmail.com Tel : 021-65407754 MP: 13916928084 _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
2005年04月19日 星期二 15:39
ÎÒ´ÓÒ»¸öÎļþÀï¶ÁÈ¡Îı¾Êý¾Ý£¬ÏÖÔÚÒ»¸ö´°¿ÚÖУ¬ÒªÇó°ÑÆäÖÐijЩ¹Ø¼ü×ÖÏÔʾΪ²»Í¬ÑÕÉ«¡£ ÎÒÔÝʱµÄ·½·¨ÊÇ£¬ÓÃÒ»¸öTextCtrl¿Ø¼þ£¨RICH2ģʽ£©l£¬¼ÙÉèÎÒ°Ñ'--->','<---',±ê¼ÇΪ²»Í¬ÑÕÉ« self.logw.AppendText(data) i = data.find('--->') ''' while i != -1: self.logw.SetStyle(i,i+4,wx.TextAttr(wx.BLUE)) i = data.find('--->',i+1) i = data.find('<---') while i != -1: self.logw.SetStyle(i,i+4,wx.TextAttr(wx.GREEN)) i = data.find('<---',i+1) i = data.find('Traceback') ''' if i != -1: self.logw.SetStyle(i-1,i+9,wx.TextAttr(wx.RED)) µ«ÏÖÔÚ¿ÉÒÔʵÏÖ£¬ÎÊÌâÊÇËÙ¶ÈÌ«Âý£¬£¨ÎªÁËÉèÑÕÉ«Á½¸öÑ»·²éÕÒλÖã©¡£ ÎÒÏëµ½ÁËStyledTextCtrl¿Õ¼ä£¬µ«²»Ì«ÊìϤ£¬²»ÖªµÀÔõÑùΪStyledTextCtrl¿Õ¼äÖƶ¨×Ô¶¨ÒåµÄ¹Ø¼ü×ÖµÄÑÕÉ«¡£ »òÕßÓÐÆäËüËٶȿìµÄ·½·¨Â𣿠лл¸÷λ£¡ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
2005年04月19日 星期二 16:55
也可以试一试htmlwindow 在05-4-19,kanchy kang<zzhikang at hotmail.com> 写道: > 我从一个文件里读取文本数据,现在一个窗口中,要求把其中某些关键字显示为不同颜色。 > 我暂时的方法是,用一个TextCtrl控件(RICH2模式)l,假设我把'--->','<---',标记为不同颜色 > self.logw.AppendText(data) > i = data.find('--->') > ''' > while i != -1: > self.logw.SetStyle(i,i+4,wx.TextAttr(wx.BLUE)) > i = data.find('--->',i+1) > i = data.find('<---') > while i != -1: > self.logw.SetStyle(i,i+4,wx.TextAttr(wx.GREEN)) > i = data.find('<---',i+1) > i = data.find('Traceback') > ''' > if i != -1: > self.logw.SetStyle(i-1,i+9,wx.TextAttr(wx.RED)) > > 但现在可以实现,问题是速度太慢,(为了设颜色两个循环查找位置)。 > 我想到了StyledTextCtrl空间,但不太熟悉,不知道怎样为StyledTextCtrl空间制定自定义的关键字的颜色。 > 或者有其它速度快的方法吗? > > 谢谢各位! > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > -- 茫茫人海,你是我的最爱
Zeuux © 2025
京ICP备05028076号