Guest User

Untitled

a guest
Oct 5th, 2019
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from tkinter import *
  2. from tkinter import ttk
  3. from tkinter import messagebox
  4.  
  5. root=Tk()
  6. varx=DoubleVar()
  7. def com(event):
  8.     #messagebox.showinfo('error', 'bum')
  9.     l.config(text='error')
  10. spin=ttk.Spinbox(root, from_=-50, to=50, textvariable=varx)
  11. spin.bind('<Button-1>', com)
  12. spin.pack()
  13. l = Label(root, text = '')
  14. l.pack()
  15. root.mainloop()
RAW Paste Data