Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- import cv2
- root = Tk()
- root.geometry("200x200")
- def openImage():
- bilds = cv2.imread('p.png',255)
- cv2.imshow('p.png',bilds)
- cv2.waitKey(0)
- cv2.destroyAllWindows()
- def sendtext():
- print("texttexttexttexttexttexttexttexttexttexttexttext")
- button1 = Button(root, text='open Image',command=openImage).pack()
- button2 = Button(root, text="send text ",command=sendtext).pack()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement