equal
deleted
inserted
replaced
113 __builtin__.__dict__['_'] = lambda x: x |
113 __builtin__.__dict__['_'] = lambda x: x |
114 |
114 |
115 if enablewx: |
115 if enablewx: |
116 try: |
116 try: |
117 import wxversion |
117 import wxversion |
118 wxversion.select('2.8') |
118 wxversion.select(['2.8', '3.0']) |
119 import wx |
119 import wx |
120 havewx = True |
120 havewx = True |
121 except: |
121 except: |
122 print "Wx unavailable !" |
122 print "Wx unavailable !" |
123 havewx = False |
123 havewx = False |
124 |
124 |
125 if havewx: |
125 if havewx: |
126 import re |
126 import re |
127 from threading import Thread, currentThread |
127 from threading import Thread, currentThread |
128 from types import * |
128 from types import * |
129 app=wx.App(redirect=False) |
129 |
|
130 if wx.VERSION >= (3, 0, 0): |
|
131 app = wx.App(redirect=False) |
|
132 else: |
|
133 app = wx.PySimpleApp(redirect=False) |
|
134 app.SetTopWindow(wx.Frame(None, -1)) |
130 |
135 |
131 # Import module for internationalization |
136 # Import module for internationalization |
132 import gettext |
137 import gettext |
133 |
138 |
134 def Bpath(*args): |
139 def Bpath(*args): |