File: qt_fake.py

package info (click to toggle)
python-scientific 2.8-1.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,456 kB
  • ctags: 7,038
  • sloc: python: 16,436; ansic: 4,379; makefile: 135; sh: 18; csh: 1
file content (18 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Dummy module to make epydoc generate documentation even though
# Qt is not installed.

import sys
if sys.modules.has_key('epydoc'):

    class Qt:
        SolidLine=None
        SolidPattern=None

    class QWidget:
        pass

else:

    raise ImportError, "Please install PyQt"

del sys