[Tutor] AttributeError: 'module' object has no attribute 'start'

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Jun 12 18:47:23 CEST 2014


On 12/06/2014 05:51, jason sam wrote:
> Hi All,
> I am new to wxPython.I have made a simple GUI that contains a button and
> by pressing that button i am calling another .py
> file(top_block.py)...But i am getting error using the command:
>
> top_block.start()
>
> The error is:
>
> AttributeError: 'module' object has no attribute 'start'
>
> The code is as attached.I am using python 2.7.3.Any improvements in the
> code are also welcome.The same error is received when i
> use'top_block.run()'.Is there any alternative to this commands?
>
> Regards,
> Ali
>

I suspect that you'll get better answers on the wxpython list, 
especially consdiering that you asked there all of two minutes before 
asking here.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com




More information about the Tutor mailing list