title
= 'Pmw.TextDialog demonstration'
# Import Pmw from this directory tree.
sys
.path
[:0] = ['../../..']
def __init__(self
, parent
):
dialog
= Pmw
.TextDialog(parent
, scrolledtext_labelpos
= 'n',
label_text
= 'Lawyer jokes')
dialog
.insert('end', jokes
)
dialog
.configure(text_state
= 'disabled')
# Create button to launch the dialog.
w
= Tkinter
.Button(parent
, text
= 'Show text dialog',
command
= dialog
.activate
)
w
.pack(padx
= 8, pady
= 8)
Q: What do you call 5000 dead lawyers at the bottom of the ocean?
Q: How can you tell when a lawyer is lying?
Q: Why won't sharks attack lawyers?
A: Professional courtesy.
Q: What do have when a lawyer is buried up to his neck in sand?
Q: How do you get a lawyer out of a tree?
Q: What is the definition of a shame (as in "that's a shame")?
A: When a bus load of lawyers goes off a cliff.
Q: What is the definition of a "crying shame"?
A: There was an empty seat.
Q: What do you get when you cross the Godfather with a lawyer?
A: An offer you can't understand.
Q. What do lawyers use as contraceptives?
Q. What's brown and black and looks good on a lawyer?
Q. Why are lawyers buried 12 feet underground?
Q. What's the difference between a catfish and a lawyer?
A. One's a slimy scum-sucking scavenger, the other is just a fish.
######################################################################
# Create demo in root window for testing.
if __name__
== '__main__':
exitButton
= Tkinter
.Button(root
, text
= 'Exit', command
= root
.destroy
)
exitButton
.pack(side
= 'bottom')