コード例 #1
0
    def OnConfigExit(self, msg):
        """Update current state when the config dialog has been closed
        @param msg: Message Object

        """
        util.Log("[Launch][info] Saving config to profile")
        self.RefreshControlBar()
        Profile_Set(LAUNCH_KEY, handlers.GetState())
コード例 #2
0
    def OnConfigExit(self, msg):
        """Update current state when the config dialog has been closed
        @param msg: Message Object

        """
        util.Log("[Launch][info] Saving config to profile")
        self.RefreshControlBar()
        Profile_Set(
            LAUNCH_KEY,
            handlers.GetState())  # TODO is this necessary see other handler
        # Update wordwrapping
        mode = wx.stc.STC_WRAP_NONE
        if self._prefs.get('wrapoutput', False):
            mode = wx.stc.STC_WRAP_WORD  # should we do wrap char?
        wrapmode = self._buffer.GetWrapMode()
        if wrapmode != mode:
            self._buffer.SetWrapMode(mode)
        self.UpdateBufferColors()
コード例 #3
0
def OnStoreConfig(msg):
    Profile_Set(LAUNCH_KEY, handlers.GetState())