daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Oct 15th, 2018 66 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. from tkinter import *
  2.  
  3. from tkinter.messagebox import showinfo
  4.  
  5. def clicked():
  6.     bericht = 'Test for stackflow!',
  7.     showinfo(title='popup', message=bericht)
  8.  
  9. def clicked1():
  10.     bericht = 'Test for stackflow'
  11.     showinfo(title='popup', message=bericht)
  12.  
  13. root = Tk()
  14.  
  15. label = Label(master=root,
  16.               text='This is a test for stackflow',
  17.               background='black',
  18.               foreground='white',
  19.               height = 2
  20.               )
  21. label.pack()
  22.  
  23. button2 = Button(master=root, text='Klik hier voor het beheerportaal', command=clicked, fg='red')
  24. button2.pack(side=BOTTOM,pady=10)
  25.  
  26. button1 = Button(master=root, text='Klik hier voor het klantportaal', command=clicked1)
  27. button1.pack(side=TOP,pady=10)
  28.  
  29. entry = Entry(master=root)
  30. entry.pack(padx=10, pady = 10)
  31.  
  32. root.configure(background='black')
  33. root.mainloop()
  34.    
  35. backgroundImage = PhotoImage(file = <yourFilePath>)
  36. label = Label(master=root,
  37.               image = backgroundImage,
  38.               text='This is a test for stackflow',
  39.               height = 2
  40.               )
  41. label.place(x=0, y=0, relwidth=1, relheight=1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top