I have tried weight options and such for my frame but nothing seemed to work. I have the following tables, in separate frames as I wish to delete the second one depending on the OptionMenu choice.
How would I go about doing this with the following code?
# Not complete code, just taken areas where I've created frames and added maybe a widget
choice_frame = Frame(win1, bg='black')
choice_frame.grid(row=2, column=1, sticky="ew", padx=1, pady=1)
choice_title = Label(choice_frame, text='Value %g'% float(i+1), bg='white', borderwidth=0, width=0)
choice_title.grid(row=0, column=column+i, sticky="nsew", padx=1, pady=1)
box=Entry(choice_frame, bg='white', borderwidth=0, width=0, textvariable=svar)
box.grid(row=1, column=column+i, sticky="ew", padx=1, pady=1)
frame_table = Frame(win1, bg='black')
frame_table.grid(row=2, column=0, padx=1, pady=1)
text_table1 = Label(frame_table, text='Bearing Number', bg='white', borderwidth=0, width=0)
text_table1.grid(row=1, column=0, sticky="nsew", padx=1, pady=1)
empty1 = Label(frame_table, bg='white', borderwidth=0, width=0)
empty1.grid(row=2, column=0, sticky="nsew", padx=1, pady=1)
If more code is required please let me know. The choice_frame is in a separate definition, if that was to make a difference as well. Although I created the frame outside the definition and created the boxes inside.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)