diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..6efda59 Binary files /dev/null and b/icon.png differ diff --git a/lena.png b/lena.png new file mode 100644 index 0000000..59ef68a Binary files /dev/null and b/lena.png differ diff --git a/src/GUI.py b/src/GUI.py index 57a48a9..78cb35a 100644 --- a/src/GUI.py +++ b/src/GUI.py @@ -56,6 +56,7 @@ class GUI: file_menu = tk.Menu(menu, tearoff=0) menu.add_cascade(label="File", menu=file_menu) file_menu.add_command(label="Open Image", command=lambda: self._openImage()) + file_menu.add_command(label="Open Camera", command=lambda: self._openCamera()) file_menu.add_command(label="Save Image", command=lambda: self._saveImage()) file_menu.add_command(label="Exit", command=root.quit) @@ -441,3 +442,7 @@ class GUI: canvas_left, canvas_top, canvas_right, canvas_bottom, outline="red", width=3, fill="" ) + + def _openCamera(self): + camera = CameraWindow() + camera.run(self) \ No newline at end of file