Beremiz.py
changeset 1790 47fc06c13b37
parent 1780 c52d1460cea8
child 1792 4d1de8b0183f
equal deleted inserted replaced
1789:492e2cd6157e 1790:47fc06c13b37
   110         if os.path.exists("BEREMIZ_DEBUG"):
   110         if os.path.exists("BEREMIZ_DEBUG"):
   111             __builtin__.__dict__["BMZ_DBG"] = True
   111             __builtin__.__dict__["BMZ_DBG"] = True
   112         else:
   112         else:
   113             __builtin__.__dict__["BMZ_DBG"] = False
   113             __builtin__.__dict__["BMZ_DBG"] = False
   114 
   114 
   115         global wxversion, wx
   115         global wx
   116         import wxversion
       
   117         wxversion.select(['2.8', '3.0'])
       
   118         import wx
   116         import wx
   119 
   117 
   120         if wx.VERSION >= (3, 0, 0):
   118         if wx.VERSION >= (3, 0, 0):
   121             self.app = wx.App(redirect=BMZ_DBG)
   119             self.app = wx.App(redirect=BMZ_DBG)
   122         else:
   120         else: