Skip to content

Commit

Permalink
remove demo dependency on distutils; fixes issue 2519
Browse files Browse the repository at this point in the history
  • Loading branch information
DietmarSchwertberger committed Jan 24, 2024
1 parent 0c54500 commit 7e2c7d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import shutil
from threading import Thread

from distutils.version import LooseVersion

import wx
import wx.adv
Expand Down Expand Up @@ -2661,7 +2660,7 @@ class MyApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
def OnInit(self):

# Check runtime version
if LooseVersion(version.VERSION_STRING) != LooseVersion(wx.VERSION_STRING):
if version.VERSION_STRING != wx.VERSION_STRING:
wx.MessageBox(caption="Warning",
message="You're using version %s of wxPython, but this copy of the demo was written for version %s.\n"
"There may be some version incompatibilities..."
Expand Down

0 comments on commit 7e2c7d6

Please sign in to comment.