Skip to content

Commit

Permalink
Merge branch 'check-wxpython-version'
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Aug 3, 2015
2 parents d3dfaa8 + e505b21 commit 8e06c68
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions moccasin/interfaces/moccasin_GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
import wx
import re

#Imports for tokenizing, formatting and displaying .m or .xml files
import wx.html2
# We need wx.html2, which was introduced in wxPython 2.9.
from distutils.version import LooseVersion
if LooseVersion(wx.__version__) < LooseVersion('2.9'):
raise Exception('The MOCCASIN GUI requires wxPython version 2.9 or higher')

# Imports for tokenizing, formatting and displaying .m or .xml files
import wx.html2
from pygments import highlight
from pygments.lexers import get_lexer_by_name
from pygments.formatters import HtmlFormatter
Expand Down

0 comments on commit 8e06c68

Please sign in to comment.