cozmo.tkview¶
This module provides a simple GUI viewer for Cozmo’s camera.
It uses Tkinter, the standard Python GUI toolkit which is optionally available on most platforms, and also depends on the Pillow and numpy libraries for image processing.
See the online SDK documentation for details on how to install these extra packages on your platform.
The easiest way to make use of this viewer is to call
cozmo.run.connect_with_tkviewer()
.
Warning
This package requires Python to have Tkinter installed to display the GUI.
Classes
TkImageViewer ([tk_root, refresh_interval, …]) |
Simple Tkinter camera viewer. |
TkThreadable (*a, **kw) |
A mixin for adding threadsafe calls to tkinter methods. |
-
class
cozmo.tkview.
TkImageViewer
(tk_root=None, refresh_interval=10, image_scale=2, window_name='CozmoView', force_on_top=True)¶ Simple Tkinter camera viewer.
-
configure
(event)¶ Configure resources of a widget.
The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method keys.
-