diff --git a/gui/wxpython/core/gconsole.py b/gui/wxpython/core/gconsole.py index 9c9c276912d..cb0cae30989 100644 --- a/gui/wxpython/core/gconsole.py +++ b/gui/wxpython/core/gconsole.py @@ -48,9 +48,7 @@ from core.giface import Notification from gui_core.widgets import FormNotebook -from grass.grassdb.checks import ( - get_current_mapset_history_path -) +from grass.grassdb.checks import get_current_mapset_history_path wxCmdOutput, EVT_CMD_OUTPUT = NewEvent() wxCmdProgress, EVT_CMD_PROGRESS = NewEvent() diff --git a/gui/wxpython/core/settings.py b/gui/wxpython/core/settings.py index ac47e7729c9..472069d0709 100644 --- a/gui/wxpython/core/settings.py +++ b/gui/wxpython/core/settings.py @@ -169,11 +169,7 @@ def _defaultSettings(self): # ask when quitting wxGUI or closing display "askOnQuit": {"enabled": True}, # hide tabs - "hideTabs": { - "search": False, - "pyshell": False, - "history": False - }, + "hideTabs": {"search": False, "pyshell": False, "history": False}, "copySelectedTextToClipboard": {"enabled": False}, }, # diff --git a/gui/wxpython/gui_core/menu.py b/gui/wxpython/gui_core/menu.py index 6f3eb57534f..8acda2b1984 100644 --- a/gui/wxpython/gui_core/menu.py +++ b/gui/wxpython/gui_core/menu.py @@ -324,6 +324,8 @@ def __init__(self, parent, giface, id=wx.ID_ANY, **kwargs): self._createTree() + self._layout() + def _layout(self): """Dialog layout""" sizer = wx.BoxSizer(wx.VERTICAL) @@ -343,7 +345,6 @@ def _createTree(self): self._tree.selectionChanged.connect(self.OnItemSelected) self._tree.itemActivated.connect(lambda node: self.Run(node)) self._giface.currentMapsetChanged.connect(self._updateHistoryModel) - self._layout() def _getTreeInstance(self): return CTreeView(model=self._model.GetModel(), parent=self) diff --git a/gui/wxpython/main_window/frame.py b/gui/wxpython/main_window/frame.py index da85dd61716..325ce86a562 100644 --- a/gui/wxpython/main_window/frame.py +++ b/gui/wxpython/main_window/frame.py @@ -390,9 +390,7 @@ def _createConsole(self, parent): def _createHistoryModule(self, parent): """Initialize Module history widget""" if not UserSettings.Get(group="manager", key="hideTabs", subkey="history"): - self.history = HistoryModuleWindow( - parent=parent, giface=self._giface - ) + self.history = HistoryModuleWindow(parent=parent, giface=self._giface) self.history.showNotification.connect( lambda message: self.SetStatusText(message) )