Advertisement
Guest User

help

a guest
Sep 20th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. from tkinter import *
  2. import cv2
  3.  
  4.  
  5. root = Tk()
  6. root.geometry("200x200")
  7.  
  8.  
  9. def openImage():
  10.     bilds = cv2.imread('p.png',255)    
  11.     cv2.imshow('p.png',bilds)
  12.     cv2.waitKey(0)
  13.     cv2.destroyAllWindows()
  14.    
  15. def sendtext():
  16.     print("texttexttexttexttexttexttexttexttexttexttexttext")
  17.  
  18.  
  19. button1 = Button(root, text='open Image',command=openImage).pack()
  20. button2 = Button(root, text="send text ",command=sendtext).pack()
  21.  
  22. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement