Schoko Unter
Schoko Unter

Reputation: 41

wx Module misses attribute ArtProvider

I am adapting a model in SUMO and try to run a file (sumopy_gui.py). When doing so I get the following error message:

AttributeError: module 'wx' has no attribute 'ArtProvider_GetBitmap'

I tried to update wx in the cmd line, reinstalling it, but I don't find a reason why wx shouldn't have this module. All the other modules seem to be working for now. Can someone help me please?

Thanks

Upvotes: 0

Views: 522

Answers (1)

Mike Driscoll
Mike Driscoll

Reputation: 33111

If you are using wxPython 4, then you want to use wx.ArtProvider.GetBitmap. Previous versions (i.e. Classic) used the old ArtProvider_GetBitmap.

A good place to check for these kinds of differences is the following:

I also recommend reading the Migration Guide from Classic to Phoenix:

Upvotes: 1

Related Questions