Undefined variable from import when using wxPython in pydev

前端 未结 6 1651
故里飘歌
故里飘歌 2020-12-09 17:03

I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a \"Undefined variable from i

6条回答
  •  不思量自难忘°
    2020-12-09 17:55

    Try

    wx = wx

    Don't ask why. This approach (that I found when trying to break the problem in smaller parts) just seems to remove the wx undefined variables problem.

提交回复
热议问题