This file is indexed.

/usr/lib/python3/dist-packages/gausssum/plot.py is in gausssum 3.0.1.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# GaussSum (http://gausssum.sf.net)
# Copyright (C) 2006-2013 Noel O'Boyle <baoilleach@gmail.com>
#
# This program is free software; you can redistribute and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.

import os

from tkinter import *

# Matplotlib imports
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.backend_bases import key_press_handler
from matplotlib.figure import Figure

class DisplayPlot(object):
    def __init__(self, root, g, title):

        self.popup = Toplevel(root)
        self.popup.focus_set()

        self.popup.title(title)
        self.title = title # do this better

        self.popup.resizable(False,False)
        self.frame1 = Frame(self.popup)
        self.frame1.pack()

        canvas = FigureCanvasTkAgg(g.figure, master=self.frame1)
        canvas.show()
        canvas.get_tk_widget().pack(side=TOP, fill=BOTH, expand=1)

        toolbar = NavigationToolbar2TkAgg( canvas, self.frame1 )
        toolbar.update()
        canvas._tkcanvas.pack(side=TOP, fill=BOTH, expand=1)

        frame2 = Frame(self.frame1)
        frame2.pack(side=TOP)

        def on_key_event(event):
            key_press_handler(event, canvas, toolbar)

        def close(event=None):
            self.popup.destroy()

        Button(frame2, text="Close", underline=0, command=close).pack(side=LEFT)

        canvas.mpl_connect('key_press_event', on_key_event)
        self.popup.bind("<Return>",close)
        self.popup.bind("<Escape>",close)

        self.popup.bind("<Alt-c>",close)

        self.popup.protocol("WM_DELETE_WINDOW", close)