This file is indexed.

/usr/share/pyshared/guidata/tests/text.py is in python-guidata 1.6.1-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
# -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 CEA
# Pierre Raybaut
# Licensed under the terms of the CECILL License
# (see guidata/__init__.py for details)

"""Test in text mode"""

from __future__ import print_function

SHOW = False # Do not show test in GUI-based test launcher

from guidata.dataset.datatypes import DataSet
from guidata.dataset.dataitems import FloatItem, IntItem

class Parameters(DataSet):
    height = FloatItem("Height", min=1, max=250, help="height in cm")
    width = FloatItem("Width", min=1, max=250, help="width in cm")
    number = IntItem("Number", min=3, max=20)

if __name__ == '__main__':
    p = Parameters()
    p.text_edit()
    print(p)