Skip to content

Commit

Permalink
EXPERIMENT: disabled component widget destruction on focus lost
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-morel committed Aug 25, 2024
1 parent fd9c56f commit 8f8020c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/taktk/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ def view_component(self, component):
self.current_page = 0
else:
self.current_page += 1
if self.current_widget is not None:
self.current_widget.destroy()
current = self.current_widget
self.history.insert(self.current_page, component)
self.current_widget = component.render(self.parent)
self.current_widget.grid(column=0, row=0, sticky="nsew")
if current is not None:
# current.destroy()
pass

def back(self):
if self.current_page > 0:
Expand Down

0 comments on commit 8f8020c

Please sign in to comment.