--- a/Beremiz_service.py Fri Dec 02 17:48:26 2016 +0300
+++ b/Beremiz_service.py Wed Dec 07 17:51:20 2016 +0300
@@ -115,7 +115,7 @@
if enablewx:
try:
import wxversion
- wxversion.select('2.8')
+ wxversion.select(['2.8', '3.0'])
import wx
havewx = True
except:
@@ -126,7 +126,12 @@
import re
from threading import Thread, currentThread
from types import *
- app=wx.App(redirect=False)
+
+ if wx.VERSION >= (3, 0, 0):
+ app = wx.App(redirect=False)
+ else:
+ app = wx.PySimpleApp(redirect=False)
+ app.SetTopWindow(wx.Frame(None, -1))
# Import module for internationalization
import gettext