mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Switch the session log to being the default tab on the log window
This commit is contained in:
parent
df8d05e0c5
commit
41c17c74f3
2 changed files with 9 additions and 9 deletions
|
@ -160,14 +160,14 @@ class Game_StatsDialog:
|
|||
store = self._createStatsList()
|
||||
formatter = StatsFormatter(app, store)
|
||||
formatter.writeStats(player)
|
||||
# full log
|
||||
store = self._createLogList('full_log_treeview')
|
||||
formatter = LogFormatter(app, store)
|
||||
formatter.writeFullLog(player)
|
||||
# session log
|
||||
store = self._createLogList('session_log_treeview')
|
||||
formatter = LogFormatter(app, store)
|
||||
formatter.writeSessionLog(player)
|
||||
# full log
|
||||
store = self._createLogList('full_log_treeview')
|
||||
formatter = LogFormatter(app, store)
|
||||
formatter.writeFullLog(player)
|
||||
#
|
||||
self._translateLabels()
|
||||
dialog = self.widgets_tree.get_widget('stats_dialog')
|
||||
|
|
|
@ -522,16 +522,16 @@ class LogDialog(MfxDialog):
|
|||
|
||||
self.notebook_tabs = []
|
||||
|
||||
full_frame = FullLogFrame(self, notebook, app, player)
|
||||
notebook.add(full_frame, text=_('Full log'))
|
||||
self.full_log_frame = full_frame
|
||||
self.notebook_tabs.append(full_frame._w)
|
||||
|
||||
session_frame = SessionLogFrame(self, notebook, app, player)
|
||||
notebook.add(session_frame, text=_('Session log'))
|
||||
self.session_log_frame = session_frame
|
||||
self.notebook_tabs.append(session_frame._w)
|
||||
|
||||
full_frame = FullLogFrame(self, notebook, app, player)
|
||||
notebook.add(full_frame, text=_('Full log'))
|
||||
self.full_log_frame = full_frame
|
||||
self.notebook_tabs.append(full_frame._w)
|
||||
|
||||
notebook.select(LogDialog.SELECTED_TAB)
|
||||
bind(notebook, '<<NotebookTabChanged>>', self.tabChanged)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue