Apr-09-2019, 07:19 AM
(Apr-08-2019, 09:29 PM)metulburr Wrote: I havent done tkinter in a long time. So i am very rusty with placement. But you are assinging the same widget to the same cell pushing the buttons to the right. I would explicitly state row and column for each. Such asThis is the close i got, not the final project i wanted, but is working. Many thanks mettulbur, i will take your advice in consideration and when possible try to execute it. Right now i have to finalize the program, because this is for people that have difficulty using computers, it will provide help to them, everything in one place, on a button click.
imagetest = PhotoImage(file="house.png") button_qwer = tk.Button(image = imagetest, command=self.start_progbar1) button_qwer.grid(row=1, column=2) imagetest1 = PhotoImage(file="house.png") button_qwer = tk.Button(image = imagetest1, command=self.start_progbar2) button_qwer.grid(row=1, column=3) imagetest2 = PhotoImage(file="house.png") button_qwer = tk.Button(image = imagetest2, command=self.start_progbar3) button_qwer.grid(row=1, column=4) self.root.mainloop() def start_progbar1(self): self.progbar1 = ttk.Progressbar(orient=tk.HORIZONTAL, mode='determinate', variable=self.step) self.progbar1.grid(row=2, column=5) for x in range(1,120): self.step.set(x) time.sleep(0.1) self.root.update() self.progbar1.destroy() if True: word() def start_progbar2(self): self.progbar2 = ttk.Progressbar(orient=tk.HORIZONTAL, mode='determinate', variable=self.step) self.progbar2.grid(row=3, column=5) for x in range(1,120): self.step.set(x) time.sleep(0.1) self.root.update() self.progbar2.destroy() if True: powerpoint() def start_progbar3(self): if True: self.progbar3 = ttk.Progressbar(orient=tk.HORIZONTAL, mode='determinate', variable=self.step) self.progbar3.grid(row=4, column=5)If you wanted to move it down to the bottom, i would suspect you would put it in a frame (just the progressbars and not the buttons) and assign that to the bottom. You can assign empty frames to use as a spacer to get to the bottom until your actually put something in the middle. (if i recall correctly). I would also split up your class. Because buttons are not progressbars and hence if you want to the move the class to the bottom, you would then be moving the buttons as well.