Python论坛  - 讨论区

标题:Re: Re: Re: [python-chinese] 菜鸟问题:GUI入门教程

2004年08月27日 星期五 13:20

mdkr mdkr at 163.com
Fri Aug 27 13:20:43 HKT 2004

error:
Traceback (most recent call last):
  File "test.py", line 7, in ?
    import wx
  File "E:\py\wx.py", line 10, in ?
    from wxPython.wx import *
  File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
    import _wx
  File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
    from _core import *
  File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
    import wx._core
ImportError: No module named _core
----- Original Message ----- 
From: "limodou" <chatme at 263.net>
To: <python-chinese at lists.python.cn>
Sent: Friday, August 27, 2004 9:28 AM
Subject: Re: Re: Re: [python-chinese] 菜鸟问题:GUI入门教程


> mdkr,您好!
> 
> 把错误信息传上来,一定是哪个地方有冲突了。我的一点问题都没有。
> 
> ======= 2004-08-27 09:18:39 您在来信中写道:=======
> 
> >你好:
> >  我完全没有装plone这类的程序啊。以前装过老版本的wxPython,然后我把它删除了,再装的2.5版本的wxPython
> >
> >----- Original Message ----- 
> >From: "limodou" <chatme at 263.net>
> >To: <python-chinese at lists.python.cn>
> >Sent: Friday, August 27, 2004 9:10 AM
> >Subject: Re: Re: [python-chinese] 菜鸟问题:GUI入门教程
> >
> >
> >> mdkr,您好!
> >> 
> >> 我想你可能装了plone了。我昨天试了你的程序,没问题可以运行的。如果装了plone,把它删了算了。
> >> 
> >> ======= 2004-08-27 08:48:37 您在来信中写道:=======
> >> 
> >> >你好:
> >> >   我用的wxPython自带的demo代码,为什么执行的时候却说找不到Frame呢。
> >> >----- Original Message ----- 
> >> >From: "limodou" <chatme at 263.net>
> >> >To: <python-chinese at lists.python.cn>
> >> >Sent: Friday, August 27, 2004 8:44 AM
> >> >Subject: Re: [python-chinese] 菜鸟问题:GUI入门教程
> >> >
> >> >
> >> >> 破碎细胞,您好!
> >> >> 
> >> >> 在网上找一找都有,不过都是英文的。wxPython自带一个Demo,演示了绝大多数的组件,非常好。
> >> >> 
> >> >> ======= 2004-08-26 22:46:57 您在来信中写道:=======
> >> >> 
> >> >> >请问哪里有
> >> >> >pygtk,pyqt,wxPython
> >> >> >GUI编程的入门教程呢?
> >> >> >
> >> >> >
> >> >> >
> >> >> >---------------------------------
> >> >> >Do You Yahoo!?
> >> >> >150万曲MP3疯狂搜,带您闯入音乐殿堂
> >> >> >美女明星应有尽有,搜遍美图、艳图和酷图
> >> >> >1G就是1000兆,雅虎电邮自助扩容!
> >> >> >_______________________________________________
> >> >> >python-chinese list
> >> >> >python-chinese at lists.python.cn
> >> >> >http://python.cn/mailman/listinfo/python-chinese
> >> >> >
> >> >> 
> >> >> = = = = = = = = = = = = = = = = = = = =
> >> >> 
> >> >> 
> >> >>         致
> >> >> 礼!
> >> >>  
> >> >> 
> >> >>         limodou
> >> >>         chatme at 263.net
> >> >>           2004-08-27
> >> >> 
> >> >> 
> >> >
> >> >
> >> >--------------------------------------------------------------------------------
> >> >
> >> >
> >> >> _______________________________________________
> >> >> python-chinese list
> >> >> python-chinese at lists.python.cn
> >> >> http://python.cn/mailman/listinfo/python-chinese
> >> >> _______________________________________________
> >> >python-chinese list
> >> >python-chinese at lists.python.cn
> >> >http://python.cn/mailman/listinfo/python-chinese
> >> >
> >> 
> >> = = = = = = = = = = = = = = = = = = = =
> >> 
> >> 
> >>         致
> >> 礼!
> >>  
> >> 
> >>         limodou
> >>         chatme at 263.net
> >>           2004-08-27
> >> 
> >> 
> >
> >
> >--------------------------------------------------------------------------------
> >
> >
> >> _______________________________________________
> >> python-chinese list
> >> python-chinese at lists.python.cn
> >> http://python.cn/mailman/listinfo/python-chinese
> >> _______________________________________________
> >python-chinese list
> >python-chinese at lists.python.cn
> >http://python.cn/mailman/listinfo/python-chinese
> >
> 
> = = = = = = = = = = = = = = = = = = = =
> 
> 
>         致
> 礼!
>  
> 
>         limodou
>         chatme at 263.net
>           2004-08-27
> 
> 


--------------------------------------------------------------------------------


> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 

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

2004年08月27日 星期五 13:30

Xie Yanbo idkey at 163.com
Fri Aug 27 13:30:42 HKT 2004

On 2004-08-27 13:20:1093584043 +0800, mdkr wrote:
> error:
> Traceback (most recent call last):
>   File "test.py", line 7, in ?
>     import wx
>   File "E:\py\wx.py", line 10, in ?
>     from wxPython.wx import *
>   File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
>     import _wx
>   File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
>     from _core import *
>   File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
>     import wx._core
> ImportError: No module named _core

不要再报怨了,你把自己的文件命名为 wx.py,已经把系统的 module
给替代了,自然不能从你的 wx 里 import 到正确的东西了。



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

2004年08月27日 星期五 13:37

limodou chatme at 263.net
Fri Aug 27 13:37:16 HKT 2004

Dirk,您好!

	以前用editplus现在用NewEdit。另外utf-8是xml的内部编码,否则转换多少有些麻烦。ultraedit应该也支持utf-8编码呀。

======= 2004-08-27 12:27:38 您在来信中写道:=======

>Limdo,
>
>    嗯,非常棒的教材,非常感谢。
>
>    另外,想问一下,docbook支持gb2312么?你的文档使用的是UTF-8,在UltraEdit下没法编辑,你用什么编辑器?
>
>Thanks again.
>
>
>DIrk
>
>----- Original Message ----- 
>From: "limodou" <chatme at 263.net>
>To: <python-chinese at lists.python.cn>
>Sent: Friday, August 27, 2004 10:23 AM
>Subject: Re: [python-chinese] Limodo,能否提供docbook在windows下安装的简单说明?
>
>
>> Dirk,您好!
>> 
>> 我的教程上都是windows下的使用呀。http://pyrecord.freezope.org/download/docbook_step.zip/down
>> 
>> ======= 2004-08-27 10:15:35 您在来信中写道:=======
>> 
>> >Limodo,能否提供docbook在windows下安装的简单说明?
>> >
>> >
>> >Thanks.
>> >
>> >DIrk_______________________________________________
>> >python-chinese list
>> >python-chinese at lists.python.cn
>> >http://python.cn/mailman/listinfo/python-chinese
>> >
>> 
>> = = = = = = = = = = = = = = = = = = = =
>> 
>> 
>>         致
>> 礼!
>>  
>> 
>>         limodou
>>         chatme at 263.net
>>           2004-08-27
>> 
>> 
>
>
>--------------------------------------------------------------------------------
>
>
>> _______________________________________________
>> python-chinese list
>> python-chinese at lists.python.cn
>> http://python.cn/mailman/listinfo/python-chinese
>> _______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-27


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

2004年08月27日 星期五 13:38

limodou chatme at 263.net
Fri Aug 27 13:38:43 HKT 2004

mdkr,您好!

	叫你把出错信息列出来呀,wxPython如果有错,我早就用了不了,是你机器装的软件可能互要冲突。你可以换别人的机器试试。

======= 2004-08-27 13:16:24 您在来信中写道:=======

>我import wx后
>class win(wx.Frame):
>始终找不到Frame_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-27


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

2004年08月27日 星期五 14:12

limodou chatme at 263.net
Fri Aug 27 14:12:42 HKT 2004

mdkr,您好!

	在我的wx目录下有一个_core.pyd,你看你的 有吗?

======= 2004-08-27 13:20:43 您在来信中写道:=======

>error:
>Traceback (most recent call last):
>  File "test.py", line 7, in ?
>    import wx
>  File "E:\py\wx.py", line 10, in ?
>    from wxPython.wx import *
>  File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
>    import _wx
>  File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
>    from _core import *
>  File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
>    import wx._core
>ImportError: No module named _core
>----- Original Message ----- 
>From: "limodou" <chatme at 263.net>
>To: <python-chinese at lists.python.cn>
>Sent: Friday, August 27, 2004 9:28 AM
>Subject: Re: Re: Re: [python-chinese] 菜鸟问题:GUI入门教程
>
>
>> mdkr,您好!
>> 
>> 把错误信息传上来,一定是哪个地方有冲突了。我的一点问题都没有。
>> 
>> ======= 2004-08-27 09:18:39 您在来信中写道:=======
>> 
>> >你好:
>> >  我完全没有装plone这类的程序啊。以前装过老版本的wxPython,然后我把它删除了,再装的2.5版本的wxPython
>> >
>> >----- Original Message ----- 
>> >From: "limodou" <chatme at 263.net>
>> >To: <python-chinese at lists.python.cn>
>> >Sent: Friday, August 27, 2004 9:10 AM
>> >Subject: Re: Re: [python-chinese] 菜鸟问题:GUI入门教程
>> >
>> >
>> >> mdkr,您好!
>> >> 
>> >> 我想你可能装了plone了。我昨天试了你的程序,没问题可以运行的。如果装了plone,把它删了算了。
>> >> 
>> >> ======= 2004-08-27 08:48:37 您在来信中写道:=======
>> >> 
>> >> >你好:
>> >> >   我用的wxPython自带的demo代码,为什么执行的时候却说找不到Frame呢。
>> >> >----- Original Message ----- 
>> >> >From: "limodou" <chatme at 263.net>
>> >> >To: <python-chinese at lists.python.cn>
>> >> >Sent: Friday, August 27, 2004 8:44 AM
>> >> >Subject: Re: [python-chinese] 菜鸟问题:GUI入门教程
>> >> >
>> >> >
>> >> >> 破碎细胞,您好!
>> >> >> 
>> >> >> 在网上找一找都有,不过都是英文的。wxPython自带一个Demo,演示了绝大多数的组件,非常好。
>> >> >> 
>> >> >> ======= 2004-08-26 22:46:57 您在来信中写道:=======
>> >> >> 
>> >> >> >请问哪里有
>> >> >> >pygtk,pyqt,wxPython
>> >> >> >GUI编程的入门教程呢?
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >---------------------------------
>> >> >> >Do You Yahoo!?
>> >> >> >150万曲MP3疯狂搜,带您闯入音乐殿堂
>> >> >> >美女明星应有尽有,搜遍美图、艳图和酷图
>> >> >> >1G就是1000兆,雅虎电邮自助扩容!
>> >> >> >_______________________________________________
>> >> >> >python-chinese list
>> >> >> >python-chinese at lists.python.cn
>> >> >> >http://python.cn/mailman/listinfo/python-chinese
>> >> >> >
>> >> >> 
>> >> >> = = = = = = = = = = = = = = = = = = = =
>> >> >> 
>> >> >> 
>> >> >>         致
>> >> >> 礼!
>> >> >>  
>> >> >> 
>> >> >>         limodou
>> >> >>         chatme at 263.net
>> >> >>           2004-08-27
>> >> >> 
>> >> >> 
>> >> >
>> >> >
>> >> >--------------------------------------------------------------------------------
>> >> >
>> >> >
>> >> >> _______________________________________________
>> >> >> python-chinese list
>> >> >> python-chinese at lists.python.cn
>> >> >> http://python.cn/mailman/listinfo/python-chinese
>> >> >> _______________________________________________
>> >> >python-chinese list
>> >> >python-chinese at lists.python.cn
>> >> >http://python.cn/mailman/listinfo/python-chinese
>> >> >
>> >> 
>> >> = = = = = = = = = = = = = = = = = = = =
>> >> 
>> >> 
>> >>         致
>> >> 礼!
>> >>  
>> >> 
>> >>         limodou
>> >>         chatme at 263.net
>> >>           2004-08-27
>> >> 
>> >> 
>> >
>> >
>> >--------------------------------------------------------------------------------
>> >
>> >
>> >> _______________________________________________
>> >> python-chinese list
>> >> python-chinese at lists.python.cn
>> >> http://python.cn/mailman/listinfo/python-chinese
>> >> _______________________________________________
>> >python-chinese list
>> >python-chinese at lists.python.cn
>> >http://python.cn/mailman/listinfo/python-chinese
>> >
>> 
>> = = = = = = = = = = = = = = = = = = = =
>> 
>> 
>>         致
>> 礼!
>>  
>> 
>>         limodou
>>         chatme at 263.net
>>           2004-08-27
>> 
>> 
>
>
>--------------------------------------------------------------------------------
>
>
>> _______________________________________________
>> python-chinese list
>> python-chinese at lists.python.cn
>> http://python.cn/mailman/listinfo/python-chinese
>> _______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-27


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

2004年08月27日 星期五 14:12

limodou chatme at 263.net
Fri Aug 27 14:12:56 HKT 2004

Xie Yanbo,您好!

	真是。

======= 2004-08-27 13:30:42 您在来信中写道:=======

>On 2004-08-27 13:20:1093584043 +0800, mdkr wrote:
>> error:
>> Traceback (most recent call last):
>>   File "test.py", line 7, in ?
>>     import wx
>>   File "E:\py\wx.py", line 10, in ?
>>     from wxPython.wx import *
>>   File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
>>     import _wx
>>   File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
>>     from _core import *
>>   File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
>>     import wx._core
>> ImportError: No module named _core
>
>不要再报怨了,你把自己的文件命名为 wx.py,已经把系统的 module
>给替代了,自然不能从你的 wx 里 import 到正确的东西了。
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-27


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

2004年08月30日 星期一 08:54

mdkr mdkr at 163.com
Mon Aug 30 08:54:43 HKT 2004

我的文件名是test.py啊,哪里来的wx.py?

----- Original Message ----- 
From: "Xie Yanbo" <idkey at 163.com>
To: <python-chinese at lists.python.cn>
Sent: Friday, August 27, 2004 1:30 PM
Subject: Re: [python-chinese] 菜鸟问题:GUI入门教程


> On 2004-08-27 13:20:1093584043 +0800, mdkr wrote:
> > error:
> > Traceback (most recent call last):
> >   File "test.py", line 7, in ?
> >     import wx
> >   File "E:\py\wx.py", line 10, in ?
> >     from wxPython.wx import *
> >   File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
> >     import _wx
> >   File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
> >     from _core import *
> >   File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
> >     import wx._core
> > ImportError: No module named _core
> 
> 不要再报怨了,你把自己的文件命名为 wx.py,已经把系统的 module
> 给替代了,自然不能从你的 wx 里 import 到正确的东西了。
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 

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

2004年08月30日 星期一 09:08

Xie Yanbo idkey at 163.com
Mon Aug 30 09:08:04 HKT 2004

On 2004-08-30 08:54:1093827283 +0800, mdkr wrote:
> 我的文件名是test.py啊,哪里来的wx.py?
> 
> ----- Original Message ----- 
> From: "Xie Yanbo" <idkey at 163.com>
> To: <python-chinese at lists.python.cn>
> Sent: Friday, August 27, 2004 1:30 PM
> Subject: Re: [python-chinese] 菜鸟问题:GUI入门教程
> 
> 
> > On 2004-08-27 13:20:1093584043 +0800, mdkr wrote:
> > > error:
> > > Traceback (most recent call last):
> > >   File "test.py", line 7, in ?
> > >     import wx
> > >   File "E:\py\wx.py", line 10, in ?

这里          ^^^^^^^^^^^

> > >     from wxPython.wx import *
> > >   File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
> > >     import _wx
> > >   File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
> > >     from _core import *
> > >   File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
> > >     import wx._core
> > > ImportError: No module named _core
> > 
> > 不要再报怨了,你把自己的文件命名为 wx.py,已经把系统的 module
> > 给替代了,自然不能从你的 wx 里 import 到正确的东西了。
> > 
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> > 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese




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

2004年08月30日 星期一 16:26

mdkr mdkr at 163.com
Mon Aug 30 16:26:40 HKT 2004

哈哈哈,感谢,实在没有注意到,是以前随便写了个文件,但是用老wxPython的

----- Original Message ----- 
From: "Xie Yanbo" <idkey at 163.com>
To: <python-chinese at lists.python.cn>
Sent: Monday, August 30, 2004 9:08 AM
Subject: Re: [python-chinese] 菜鸟问题:GUI入门教程


> On 2004-08-30 08:54:1093827283 +0800, mdkr wrote:
> > 我的文件名是test.py啊,哪里来的wx.py?
> > 
> > ----- Original Message ----- 
> > From: "Xie Yanbo" <idkey at 163.com>
> > To: <python-chinese at lists.python.cn>
> > Sent: Friday, August 27, 2004 1:30 PM
> > Subject: Re: [python-chinese] 菜鸟问题:GUI入门教程
> > 
> > 
> > > On 2004-08-27 13:20:1093584043 +0800, mdkr wrote:
> > > > error:
> > > > Traceback (most recent call last):
> > > >   File "test.py", line 7, in ?
> > > >     import wx
> > > >   File "E:\py\wx.py", line 10, in ?
> 
> 这里          ^^^^^^^^^^^
> 
> > > >     from wxPython.wx import *
> > > >   File "D:\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
> > > >     import _wx
> > > >   File "D:\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
> > > >     from _core import *
> > > >   File "D:\Python23\Lib\site-packages\wxPython\_core.py", line 15, in ?
> > > >     import wx._core
> > > > ImportError: No module named _core
> > > 
> > > 不要再报怨了,你把自己的文件命名为 wx.py,已经把系统的 module
> > > 给替代了,自然不能从你的 wx 里 import 到正确的东西了。
> > > 
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > > 
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> 
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号