Argument |
Data type/notes |
self |
the window (background) that is the
parent for the dialog |
message |
quoted string containing the text to
be displayed in the scrolling dialog by default |
title |
quoted string containing the text to appear in the
dialog's title bar |
result = dialog.scrolledMessageDialog(self, message, filename)
base, ext = os.path.splitext(os.path.split(sys.argv[0])[-1])
filename
= base + ".py"
if os.path.exists(filename):
f = open(filename, "r")
msg = f.read()
else:
msg = "Can't find the file dialogs.py"