lpcmanager

0ab9ea0bc3b8
Parents 14b468ab23c2
Children b637767a4bc5
#2602 remove code using config to deal with transient informations
  • +5 -10
    LPCBeremiz.py
  • --- a/LPCBeremiz.py Tue Feb 13 15:06:24 2018 +0100
    +++ b/LPCBeremiz.py Tue Feb 13 15:14:31 2018 +0100
    @@ -73,6 +73,11 @@
    wx.Frame.Show(self)
    def OnCloseFrame(self, event):
    + """
    + Intercepts Close Frame event and veto it
    + Frame doesn't really close, but just hide.
    + Message is sent to Composer to signal app being closed.
    + """
    if self.CheckSaveBeforeClosing(_("Close Application")):
    wx.Frame.Hide(self)
    @@ -82,16 +87,6 @@
    self.CTR.KillDebugThread()
    self.KillLocalRuntime()
    - # close wxGlade if running
    - config = wx.ConfigBase.Get()
    - wxGladePid = str(config.Read("BeremizRoot.wxGlade"))
    - if wxGladePid != '0':
    - import signal
    - os.kill(int(wxGladePid), signal.SIGTERM)
    - wxGladePid = 0
    - config.Write("BeremizRoot.wxGlade", str(wxGladePid))
    - config.Flush()
    -
    self.SaveLastState()
    self.lpcberemiz_cmd_pipe.write("Closed\n")