Advertisement
Guest User

Untitled

a guest
Jul 9th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.40 KB | None | 0 0
  1. import string
  2. import os
  3. import codecs
  4. import requests
  5. import sys
  6. import datetime
  7. from tkinter import *
  8. from tkinter.ttk import *
  9.  
  10.  
  11. def avvia():
  12.     print(text_user.get)
  13.     return
  14.  
  15.  
  16. ro = Tk()
  17.  
  18. ro.title('Nuovo progetto')
  19. label_name = Label(ro, text="Nome progetto")
  20. text_name = Entry(ro, text="Nome progetto")
  21. label_user = Label(ro, text="Username", justify=RIGHT)
  22. text_user = Entry(ro, text="Username")
  23. label_password = Label(ro, text="Password", justify=RIGHT)
  24. text_password = Entry(ro, text="Password", show="*")
  25. label_type = Label(ro, text="Tipo di prova", justify=RIGHT)
  26. combo_type = Combobox(ro, values=["DNV", "NACE"])
  27. label_colate = Label(ro, text="Colate (sep. da ,)", justify=RIGHT)
  28. text_colate = Entry(ro)
  29. button = Button(ro, text="Avvia progetto", command=avvia)
  30.  
  31. label_name.grid(row=0, sticky=W, padx=5, pady=5)
  32. text_name.grid(row=0, column=1, sticky=E, padx=5, pady=5)
  33. label_user.grid(row=1, sticky=W, padx=5, pady=5)
  34. text_user.grid(row=1, column=1, sticky=E, padx=5, pady=5)
  35. label_password.grid(row=2, sticky=W, padx=5, pady=5)
  36. text_password.grid(row=2, column=1, sticky=E, padx=5, pady=5)
  37. label_type.grid(row=3, sticky=W, padx=5, pady=5)
  38. combo_type.grid(row=3, column=1, sticky=E, padx=5, pady=5)
  39. label_colate.grid(row=4, sticky=W, padx=5, pady=5)
  40. text_colate.grid(row=4, column=1, sticky=E, padx=5, pady=5)
  41. button.grid(row=5, column=0, columnspan=2, padx=5, pady=5)
  42. ro.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement