whenever i execute this code, nothing shows up on the gui. it works fine if i use grid for placing labels and buttons. it doesnt show anything if i use .place to place the labels.
from Tkinter import *
class Applet(Frame):
""" First attempt to make the program """
def __init__(self, master):
""" initialize the frame """
Frame.__init__(self,master)
self.login()
#self.Signup()
def login(self):
self.Login_username = StringVar()
self.Login_password = StringVar()
self.Label1 = Label(self, text = 'Username: ').place(x = 0, y = 0)
self.Label2 = Label(self, text = 'Password: ').place(x =50, y = 0)
self.loguser = Entry(self, textvariable = self.Login_username, width = 15).place(x = 0, y = 10)
self.logpass = Entry(self, textvariable = self.Login_password, width = 15, show = '*').place(x = 50, y = 10)
self.button = Button(self, text = 'Login').place(x = 400, y = 0)
Top = Tk()
Top.title('test-gui')
app = Applet(Top)
Top.geometry('700x350')
Top.mainloop()
None, so yes, it is an additional problem down the road. As was already explained in the answer.