Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. pom = collectionBook.find({"nazwa": tmpTitle})
  2. for i in pom:
  3. tmpID = i['_id']
  4. if messagebox.askyesno('Uwaga', 'Czy na pewno chcesz usunąć rekord?'):
  5. messagebox.showwarning('Tak', collectionBook.remove({"_id": tmpID}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement