Hey all, I'm currently making a button so that when i click on it, it shows the number of that button in an Entry Screen. If you can help me it would be great. Thanks again! :)

def createSeven(self):
        top=self.winfo_toplevel()
        top.rowconfigure(0, weight=1)
        top.columnconfigure(0, weight=1)
        self.rowconfigure(0, weight=1)
        self.columnconfigure(0, weight=1)
        self.Button = tk.Button ( self, text="    7    ", font=("Arial", 12), bg="white", fg="blue", cursor="crosshair", command=lambda: self.click('7'))
        self.Button.grid(row=2, column=0, sticky=N+E+S+W)

Are you still using tabs for indentations?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.