File: python_editor.py

package info (click to toggle)
python-pyface 8.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,944 kB
  • sloc: python: 54,107; makefile: 82
file content (8 lines) | stat: -rw-r--r-- 269 bytes parent folder | download
1
2
3
4
5
6
7
8
from pyface.toolkit import toolkit

if toolkit.toolkit == "wx":
    from python_editor_wx import PythonEditor
elif toolkit.toolkit.startswith("qt"):
    from python_editor_qt4 import PythonEditor
else:
    raise RuntimeError("Unsupported toolkit %s" % toolkit.toolkit)