Skip to content

Commit

Permalink
grid_remove is the correct function. grid forget causes settings to b…
Browse files Browse the repository at this point in the history
…e lost.
  • Loading branch information
samclane committed May 12, 2018
1 parent 9b8d745 commit 5f0f15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class LifxFrame(ttk.Frame):
self.logger.info("Building new frame: {}".format(self.framesdict[new_light_label].get_label()))
else: # Frame was found; bring to front
for frame in self.framesdict.values():
frame.grid_forget() # remove all other frames; not just the current one (this fixes sync bugs for some reason
self.framesdict[new_light_label].grid(column=1, row=0, sticky=(N, W, E, S)) # should bring to front
frame.grid_remove() # remove all other frames; not just the current one (this fixes sync bugs for some reason
self.framesdict[new_light_label].grid() # should bring to front
self.logger.info(
"Brought existing frame to front: {}".format(self.framesdict[new_light_label].get_label()))
self.current_lightframe = self.framesdict[new_light_label]
Expand Down

0 comments on commit 5f0f15f

Please sign in to comment.