Code Search for Developers
 
 
  

med.py from The Nebula Device at Krugle


Show med.py syntax highlighted

#-------------------------------------------------------------------------------
# med.py
#-------------------------------------------------------------------------------

import sys
if not hasattr(sys, 'hexversion') or sys.hexversion < 0x020400f0:
    sys.exit('Python 2.4.0 or later is required to run mangalore level editor')

try:
    import wx
except ImportError:
    sys.exit('wxPython 2.5.0 or later is required to run mangalore level editor.')
else:
    if wx.VERSION < (2, 5):
        sys.exit('wxPython 2.5.0 or later is required to run mangalore level editor.')

try:
    import pysqlite2.dbapi2 as sqlite
except ImportError:
    sys.exit('PySQLite 2.1.0 or later is required to run mangalore level editor.')
else:
    if sqlite.version < '2.1':
        sys.exit('PySQLite 2.1.0 or later is required to run mangalore level editor.')

from med.gui.mainapp import MainApp

def main():
    app = MainApp()
    app.MainLoop()

if __name__ == '__main__':
    main()

#-------------------------------------------------------------------------------
# Eof
#-------------------------------------------------------------------------------



See more files for this project here

The Nebula Device

Realtime 3D game/visualization engine, written in C++, scriptable through Tcl/Tk, Python and Lua. Supports D3D and OpenGL for rendering, runs under Linux and Windows.

Project homepage: http://sourceforge.net/projects/nebuladevice
Programming language(s): C,C++,Python
License: other

  med/
    gui/
      __init__.py
      aboutdialog.py
      db3grid.py
      db3notebook.py
      db3page.py
      db3tree.py
      db3xmldialog.py
      explorerchoice.py
      explorerpage.py
      explorerpanel.py
      explorertree.py
      leftnotebook.py
      mainapp.py
      mainframe.py
      medartprovider.py
      medsplash.py
      medsplitter.py
      rightpanel.py
      xmldb3dialog.py
      xmledit.py
      xmlnotebook.py
      xmltree.py
    mang/
      __init__.py
      db3file.py
      entity.py
      envobject.py
      guid.py
      level.py
      light.py
      mangalorelevel.py
      manggenerator.py
      manghandler.py
      mangreader.py
      matrix.py
      opobject.py
      transform.py
      xmlfile.py
    __init__.py
  res/
    medsplash.png
  med.ini
  med.py