Advertisement
yukcheong

GUI for test

Feb 11th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.11 KB | None | 0 0
  1. import Tkinter
  2.  
  3. def run_gui():
  4.     aimyon = Tkinter.Tk()
  5.     generate(aimyon)
  6.     aimyon.mainloop()
  7.  
  8. def generate(love):
  9.  
  10.     love.geometry("704x538+622+160")
  11.     love.minsize(148, 1)
  12.     love.maxsize(1924, 1055)
  13.     love.resizable(1, 1)
  14.     love.title("Title")
  15.     love.configure(background="#333333")
  16.     love.configure(cursor="arrow")
  17.  
  18.     Frame1 = Tkinter.Frame(love)
  19.     Frame1.place(relx=0.085, rely=0.112, relheight=0.771, relwidth=0.831)
  20.     Frame1.configure(relief='groove')
  21.     Frame1.configure(borderwidth="2")
  22.     Frame1.configure(relief="groove")
  23.     Frame1.configure(background="#252527")
  24.  
  25.     Label1 = Tkinter.Label(Frame1)
  26.     Label1.place(relx=0.137, rely=0.193, height=46, width=72)
  27.     Label1.configure(background="#252527")
  28.     Label1.configure(foreground="#ffffff")
  29.     Label1.configure(text='''Label''')
  30.  
  31.     Label2 = Tkinter.Label(Frame1)
  32.     Label2.place(relx=0.137, rely=0.482, height=36, width=72)
  33.     Label2.configure(background="#252527")
  34.     Label2.configure(foreground="#ffffff")
  35.     Label2.configure(text='''Label''')
  36.  
  37.     Entry1 = Tkinter.Entry(Frame1)
  38.     Entry1.place(relx=0.479, rely=0.217,height=24, relwidth=0.263)
  39.     Entry1.configure(background="#d9d9d9")
  40.     Entry1.configure(foreground="#000000")
  41.  
  42.     Entry2 = Tkinter.Entry(Frame1)
  43.     Entry2.place(relx=0.479, rely=0.506,height=24, relwidth=0.263)
  44.     Entry2.configure(background="#d9d9d9")
  45.     Entry2.configure(foreground="#000000")
  46.  
  47.     Button1 = Tkinter.Button(Frame1)
  48.     Button1.place(relx=0.274, rely=0.771, height=33, width=56)
  49.     Button1.configure(activebackground="#808080")
  50.     Button1.configure(activeforeground="#000000")
  51.     Button1.configure(background="#6A6A6A")
  52.     Button1.configure(foreground="#ffffff")
  53.     Button1.configure(text='''Button''')
  54.  
  55.     Button3 = Tkinter.Button(Frame1)
  56.     Button3.place(relx=0.598, rely=0.771, height=33, width=56)
  57.     Button3.configure(activebackground="#808080")
  58.     Button3.configure(activeforeground="#000000")
  59.     Button3.configure(background="#6A6A6A")
  60.     Button3.configure(foreground="#ffffff")
  61.     Button3.configure(text='''Button''')
  62.  
  63.  
  64. run_gui()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement