python图形用户界面程序设计
高洛峰
高洛峰 2017-04-18 09:19:19
0
2
402

这里是一个渴求知识的编程小白。。
今天刚接触图形用户界面程序设计,我下载了wxPython,拷贝了一段代码想试试,结果运行不出来。
英文我都看得懂,但是因为GUI对我是个新概念,所以我不太懂问题出在哪里……
感恩!

报错图片

代码主体

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
洪涛
if __name__ == '__main__':

There should be two underscores here
and the __init__ above, these are special methods of python

小葫芦
line3: _init_      --> __init__
line12: _name_     --> __name__
        _main_     --> __main__
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template