A ShadowBox with handles on it.
Methods
|
|
__init__
add_handle
handle
|
|
__init__
|
__init__ (
self,
canvas,
name=None,
ulx=0,
uly=0,
background='grey',
outline='black',
allowMotion=0,
width=25,
height=20,
bd=2,
ridgeWidth=0,
relief=Tkinter.RAISED,
ipad=6,
helpMessage=None,
balloon=None,
handleWidth=10,
handleHeight=10,
)
Create a HandledBox.
Arguments
-
canvas Canvas on which all of this is being drawn.
-
name Name of the HandledBox.
-
ulx Upper left X coordinate.
-
uly Upper left Y coordinate.
-
background Background color of the box. Defaults to grey .
-
outline Outline color for the box. Defaults to black .
-
allowMotion Boolean controlling whether the icon should
allow the user to move it.
-
width How wide is the box?
-
height How high is the box?
-
bd Border width for shadow and outline area. Defaults to 2.
-
ridgeWidth Width of ridge around edge of box.
-
relief Tkinter relief mode specification. Defaults to
Tkinter.RAISED.
-
ipad Internal padding value.
-
helpMessage Balloon help message to be shown on mouseover.
-
balloon Balloon help manager.
-
handleWidth How wide are handles attached to this box?
-
handleHeight How tall are handles attached to this box?
|
|
add_handle
|
add_handle (
self,
handle_name=None,
edge=Tkinter.LEFT,
helpMessage=None,
relief=Tkinter.RAISED,
)
Add a handle to the box.
Arguments
- handle_name
Name of the handle.
- edge
Edge of the box on which the handle should appear.
Defaults to Tkinter.LEFT.
- helpMessage
Balloon help to be displayed on mouseover.
- relief
Relief mode specification for the handle.
Add a named handle to the specified edge. A separate
CanvasObject which can be treated as the handle will be
returned.
Exceptions
|
|
ValueError( 'There is already a handle named %s' % handle_name )
|
|
|
handle
|
handle ( self, handle_name )
Retrieve a named handle.
|
|