This file is indexed.

/usr/share/pyshared/guiqwt/tests/qtdesigner.py is in python-guiqwt 2.1.6-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 CEA
# Pierre Raybaut
# Licensed under the terms of the CECILL License
# (see guiqwt/__init__.py for details)

# -*- coding: utf-8 -*-
"""
Testing guiqwt QtDesigner plugins

These plugins provide CurveWidget and ImageWidget objects 
embedding in GUI layouts directly from QtDesigner.
"""

SHOW = True # Show test in GUI-based test launcher

import sys, os.path as osp

from guidata.qt.QtGui import QApplication
from guiqwt.qtdesigner import loadui
from guiqwt.builder import make

FormClass = loadui( osp.splitext(__file__)[0]+'.ui' )

class TestWindow(FormClass):
    def __init__(self, image_data):
        super(TestWindow, self).__init__()
        plot = self.imagewidget.plot
        plot.add_item(make.image(image_data))
        self.setWindowTitle("QtDesigner plugins example")

if __name__ == "__main__":
    app = QApplication(sys.argv)
    from image import compute_image
    form = TestWindow( compute_image() )
    form.show()
    sys.exit(app.exec_())