HandledBox is a canvas object subclassed from ShadowBox, which adds handles. It can be dragged around on a canvas.

   1 box = HandledBox(self.canvas, name='bigtest', 
   2                       ulx=50, uly=30,
   3                       width=150, 
   4                       height=150,
   5                       relief=Tkinter.RIDGE,
   6                       bd=15,
   7                       ridgeWidth=5,
   8                       allowMotion=1,
   9                       #background='lightblue',
  10                       balloon = self.balloon(),
  11                       helpMessage = 'help for handled box',
  12                       handleWidth=15,
  13                       handleHeight=15,
  14                       )

Screenshot:

HandledBox1.png

tkinter: HandledBox (last edited 2010-07-26 11:59:12 by localhost)