This file is indexed.

/usr/share/pyshared/PythonCard/tools/experimentalResourceEditor/templates/dialogTemplate.py is in python-pythoncard 0.8.2-3.

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
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/24 19:21:46 $"
"""

from PythonCard import model

class MyDialog(model.CustomDialog):
    def __init__(self, parent, txt=''):
        model.CustomDialog.__init__(self, parent)
        
        # if some special setup is necessary, do it here
        # example from samples/dialogs/minimalDialog.py
        # self.components.field1.text = txt

#def myDialog(parent, txt):
def myDialog(parent):
    dlg = MyDialog(parent, txt)
    result = dlg.showModal()
    # stick your results into the result dictionary here
    # example from samples/dialogs/minimalDialog.py
    # result.text = dlg.components.field1.text
    dlg.destroy()
    return result