applp.CanvasImage module
- class applp.CanvasImage(master, image, title='', ncoords=None, *args, **kwargs)[source]
Bases:
FrameThis class is a tkinter frame where to put an image that can be manipulated.
- Parameters:
a (int or float) – TODO.
- _attr
TODO.
- Type:
int or float
Examples
>>> from applp import CanvasImage ... >>> instance = CanvasImage(TODO)
- property color_shape
- property coords
- delta = 1.1
- property draw_func
- property draw_kwargs
- draw_shape = 'Rectangle'
- drawing_corner = 10
- grid(*args, **kwargs)[source]
Grid the widget and initialize internal layout.
Calls
place_widgets()after gridding to set up scrollbars, header, and canvas.- Parameters:
*args – Positional arguments forwarded to
tk.Frame.grid().**kwargs – Keyword arguments forwarded to
tk.Frame.grid().
- property image
- imscale = 1.0
- n_bkgd = 100
- pack(*args, **kwargs)[source]
Pack the widget and initialize internal layout.
Calls
place_widgets()after packing to set up scrollbars, header, and canvas.- Parameters:
*args – Positional arguments forwarded to
tk.Frame.pack().**kwargs – Keyword arguments forwarded to
tk.Frame.pack().
- place(*args, **kwargs)[source]
Place the widget and initialize internal layout.
Calls
place_widgets()after placing to set up scrollbars, header, and canvas.- Parameters:
*args – Positional arguments forwarded to
tk.Frame.place().**kwargs – Keyword arguments forwarded to
tk.Frame.place().
- property shapes
- title = ''
- title_size = 16
- width_shape = 2