Beremiz.py
changeset 406 18811cff50e6
parent 405 7bbbcddb72db
child 408 6eaa1908507d
equal deleted inserted replaced
405:7bbbcddb72db 406:18811cff50e6
   872             def togglebutton(event):
   872             def togglebutton(event):
   873                 if expandbutton.GetToggle():
   873                 if expandbutton.GetToggle():
   874                     self.ExpandLocation(locations_infos, "root")
   874                     self.ExpandLocation(locations_infos, "root")
   875                 else:
   875                 else:
   876                     self.CollapseLocation(locations_infos, "root")
   876                     self.CollapseLocation(locations_infos, "root")
       
   877                 self.PluginInfos[plugin]["expanded"] = expandbutton.GetToggle()
   877                 locations_infos["root"]["expanded"] = expandbutton.GetToggle()
   878                 locations_infos["root"]["expanded"] = expandbutton.GetToggle()
   878                 self.PLCConfigMainSizer.Layout()
   879                 self.PLCConfigMainSizer.Layout()
   879                 self.RefreshScrollBars()
   880                 self.RefreshScrollBars()
   880                 event.Skip()
   881                 event.Skip()
   881             expandbutton.Bind(wx.EVT_BUTTON, togglebutton, id=expandbutton_id)
   882             expandbutton.Bind(wx.EVT_BUTTON, togglebutton, id=expandbutton_id)