import - wxPython.wx.AboutDialogInfo() has no attribute AboutDialogInfo() -


so, had problem wxpython, managed track down importing of wx shown here:

pyinstaller activex attribute error wxpython

thanks @mike-driscoll's answer, removed horrid stuff, , replaced with

import wxpython 

(import wx didn't work...) now, whenever call class or method wxpython, append @ start of it:

wxpython.wx. 

this worked fine wxframe, wxapp, wxsize, wxmenubar, etc. but. when try aboutdialoginfo;

traceback (most recent call last):   file "c:\users\judge\desktop\lulzapp\lulz.py", line 101, in aboutapp     info = wxpython.aboutdialoginfo() attributeerror: 'module' object has no attribute 'aboutdialoginfo' 

what can done solve this?

what version of wxpython using? syntax "import wxpython" deprecated years ago. if "import wx" isn't working, there's wrong wxpython installation , should reinstall it. guess have multiple wx installs , maybe that's confusing python. once can "import wx", use "wx.aboutdialoginfo" , should work. see wxpython demo lots of cool examples of every widget in wx.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -