I used the following code to delete a part of my frame (currently want to delete the number of displayed boxes Are - can do it differently):
in the xchange (self number_box): self Box [i] .grid_remove () self.choice_title.grid_remove () Although I end up with the following:
What's wrong with me being in the last part of the main window ?!
I have a root window, then a main window, 'win 1' in which one frame holds 'frame_table' to all table. The background is set to black.
Update: In conjunction with the options to change options menu:
Instead of creating separate frames, I have created a set of entry boxes in the current frame so far 'frame_table'. When a 'list' option is selected, the amount of box the user is created for has input. With the second option, it always has 2 boxes that are made. With 'fixed' value, all boxes should be removed as no additional boxes are required.
Therefore, if there is a second option (not fixed) in the menu 'from the list, then the box needs to be removed from the' list 'option before creating the new box.
idioms:
in the xchange (self.number_boxes): Self.box [i] .grid_remove () self.choice_title.grid_remove () It should be rarely in Python that you are not seeing your box removed because your Self.number_boxes is incorrect (you may have forgotten to update it from anywhere). One better way to do this is: . box for the box in the box: grid_remove () Other: self.choice_title.grid_remove () This can solve (or not) your problem.
Comments
Post a Comment