Feb-22-2019, 07:46 PM
Hi woooee
I think you didn't test your script visually either. Because even with listcontains the ipadx and ipady aren't active!
Maybe this could be a work around:
Quote:What does this mean? You don't have anything in the Listbox in the code posted above. Stop guessing and start testing.
I think you didn't test your script visually either. Because even with listcontains the ipadx and ipady aren't active!
Maybe this could be a work around:
import tkinter as tk class MyApp(tk.Frame): def __init__(self, parent, **kwargs): self.parent = parent tk.Frame.__init__(self, parent, **kwargs) list_item_values = ["one", "two", "three", "four", "five"] lb = tk.Listbox(self, width=30, height=20, bd=0, highlightthickness=0) lb.grid(row=0, column=0, padx=5, pady=5) lb.insert('end', *list_item_values) if __name__ == "__main__": root = tk.Tk() MyApp(root, relief='sunken', bd=1, bg='white').pack(padx=5, pady=5) root.mainloop()Greetings wuf