This file is indexed.

/usr/share/pyshared/PythonCard/components/container.py is in python-pythoncard 0.8.2-2.

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
"""
__version__ = "$Revision:$"
__date__ = "$Date:$"
"""

import wx
from PythonCard import event, widget, model

class ContainerSpec( widget.WidgetSpec ) :
    def __init__( self ) :
        events = [ event.MouseClickEvent ]
        attributes = {}
        widget.WidgetSpec.__init__( self, 'Container', 'Widget', events, attributes )
 

class Container( widget.Widget, model.Scriptable, wx.Panel ) :
    """
    A container panel for composite components.
    """

    _spec = ContainerSpec()

    def __init__( self, aParent,  aResource ) :
        model.Scriptable.__init__( self, aParent )     
        wx.Panel.__init__(
            self, aParent, widget.makeNewId(aResource.id), 
            aResource.position,
            aResource.size,
            style = wx.CLIP_SIBLINGS,
            name = aResource.name
        )
        widget.Widget.__init__( self, aParent, aResource )
        
        adapter = event.DefaultEventBinding( self )
        adapter.bindEvents()

# KEA 2001-12-09
# the registry could contain a dictionary of the class, its EventBinding, spec, etc.
# some of those references could be class attributes instead
# it seems like the spec for the class should be part of the class itself
# RDS 2001-16-01
# A new module, registry, contains the Registry class.  A Component's
# class now contains it's spec, which contains meta data for it's events
# and attributes.  Components register with the ComponentRegistry.

import sys
from PythonCard import registry
registry.Registry.getInstance().register(sys.modules[__name__].Container)