Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
lindakladivova committed Nov 10, 2023
1 parent e46dfcb commit 13917c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 1 addition & 3 deletions gui/wxpython/core/gconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 1 addition & 5 deletions gui/wxpython/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
#
Expand Down
3 changes: 2 additions & 1 deletion gui/wxpython/gui_core/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions gui/wxpython/main_window/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 13917c0

Please sign in to comment.