Commit 888c6cb4 authored by eric pellegrini's avatar eric pellegrini

Bug fix when toggle on/off the toolbar

Removed modal status of elements database editor
parent 4be5cd24
......@@ -236,8 +236,6 @@ class ElementsDatabaseEditor(wx.Frame):
self.SetMenuBar(menubar)
self.MakeModal(True)
def on_show_popup_menu(self, event):
menu = wx.Menu()
......
......@@ -409,13 +409,19 @@ or directly to the MDANSE mailing list:
def on_toggle_toolbar(self, event=None):
self._prevSize = self.GetSize()
if self.GetToolBar():
sizeH = self._prevSize[1] - self._toolbar.GetSize()[1]
self._toolbar.Hide()
self.SetToolBar(None)
else:
sizeH = self._prevSize[1] + self._toolbar.GetSize()[1]
self.SetToolBar(self._toolbar)
self._toolbar.Show()
self.SetSize((-1,sizeH))
@property
def panels(self):
return self._panels
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment