Focus contents of various pages when user switches to their tabs

This commit is contained in:
DarkPhoenix
2019-04-24 09:02:28 +03:00
parent d35bf6514f
commit 71aa557770
8 changed files with 14 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ class ResourcesViewFull(StatsView):
self.toggleContext("fighter")
else:
self.toggleContext("drone")
event.Skip()
def toggleContext(self, context):
# Apparently you cannot .Hide(True) on a Window, otherwise I would just .Hide(context !== x).