Mercurial > traipse_dev
comparison orpg/orpg_wx.py @ 0:4385a7d0efd1 grumpy-goblin
Deleted and repushed it with the 'grumpy-goblin' branch. I forgot a y
author | sirebral |
---|---|
date | Tue, 14 Jul 2009 16:41:58 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4385a7d0efd1 |
---|---|
1 try: | |
2 import wxversion | |
3 wxversion.select(["2.6", "2.7", "2.8"]) | |
4 import wx | |
5 import wx.html | |
6 import wx.lib.wxpTag | |
7 import wx.grid | |
8 import wx.media | |
9 from wx.lib.filebrowsebutton import * | |
10 try: | |
11 import wx.aui as AUI | |
12 except: | |
13 import orpg.tools.PyAUI as AUI | |
14 if wx.VERSION_STRING < "2.7.2" and wx.VERSION_STRING > "2.7.0": | |
15 AUI.AuiManager = AUI.FrameManager | |
16 AUI.AuiManagerEvent = AUI.FrameManagerEvent | |
17 AUI.AuiPaneInfo = AUI.PaneInfo | |
18 AUI.AuiFloatingPane = AUI.FloatingPane | |
19 try: | |
20 import wx.lib.flatnotebook as FNB | |
21 if FNB.FNB_FF2: | |
22 pass | |
23 except: | |
24 import orpg.tools.FlatNotebook as FNB | |
25 if wx.VERSION_STRING < "2.7": | |
26 wx.Rect.Contains = lambda self, point: wx.Rect.Inside(self, point) | |
27 | |
28 WXLOADED = True | |
29 except ImportError: | |
30 WXLOADED = False | |
31 print "*WARNING* failed to import wxPython." | |
32 print "Download the correct version here: http://openrpg.digitalxero.net/" | |
33 print "If you are running the server with no gui you can ignore this message" | |
34 except Exception, e: | |
35 WXLOADED = False | |
36 print e | |
37 print "\nYou do not have the correct version of wxPython installed, please" | |
38 print "Download the correct version here: http://openrpg.digitalxero.net/" |