Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- try:
- import Tkinter as tk
- except ImportError:
- import tkinter as tk
- try:
- import ttk
- py3 = False
- except ImportError:
- import tkinter.ttk as ttk
- py3 = True
- from goprocam import GoProCamera
- from goprocam import constants
- import tkinter.messagebox as messagebox
- top = tk.Tk()
- def takePic():
- goproCamera = GoProCamera.GoPro()
- goproCamera.take_photo()
- #goproCamera.downloadLastMedia()
- messagebox.showinfo( "GoPro", "the picture had been taken")
- B = tk.Button(top, text ="Take a picture", command = takePic)
- B.pack()
- top.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement