예제 #1
0
 def __init__(self, id):
     self.id = id
     self.root = Tk()
     self.root.geometry('640x480')
     self.root.resizable(width=False, height=False)
     self.root.config(bg="White")
     self.y = 20
     self.item()
     CenterPage(self.root)
     self.root.mainloop()
예제 #2
0
    def __init__(self, id):
        self.entry_id = None
        self.entry_password = None

        self.id = id
        self.name = ""
        self.root = Tk()
        self.root.geometry('640x480')
        self.root.resizable(width=False, height=False)
        self.root.config(bg="White")
        self.y = 60
        self.item()
        CenterPage(self.root)
        self.root.mainloop()
예제 #3
0
    def __init__(self):
        y = 80
        self.root = Tk()
        self.root.geometry('640x480')
        self.root.resizable(width=False, height=False)
        self.root.config(bg="white")

        Label(self.root,
              text="Login Page",
              font=("Ubuntu Bold", 16),
              fg="#707070",
              bg="white").place(x=250, y=40)
        Label(self.root,
              text="ID",
              font=("Ubuntu", 12),
              fg="#707070",
              bg="white").place(x=200, y=y + 30)
        self.entry_id = ttk.Entry(self.root, width=30)
        self.entry_id.place(x=205, y=y + 60)
        Label(self.root,
              text="Password",
              font=("Ubuntu", 12),
              fg="#707070",
              bg="white").place(x=200, y=y + 100)
        self.entry_password = ttk.Entry(self.root, width=30, show="*")
        self.entry_password.place(x=205, y=y + 130)
        Button(self.root,
               text="Login",
               bg="#4B4B4B",
               fg="#FFFDFC",
               bd="0",
               padx='20',
               pady="3",
               activebackground="#2D2C2C",
               activeforeground="#FFFDFC",
               command=self.getIdPassword).place(x=270, y=y + 180)

        CenterPage(self.root)
        self.root.mainloop()