Problem importing wx with PyDev - undefined variable import
I am getting errors like Undefined variable from import: BOLD while I do:
import wx
print(wx.BOLD)
I looked at wx module initialization and it does something like
from wx._core import *
del wx
import wx._core
I am not sure why it does this trick, but it'开发者_JAVA百科s clear that this makes PyDev go insane.
What is the proper way of importing wx if you want to use wx.BOLD or other constants and not have PyDev complain about it.
加载中,请稍侯......
精彩评论