def on_info_click(self, event):
        """
        Show popup info window when user clicks "?"
        """
        def on_close(event, wind):
            wind.Close()
            wind.Destroy()
        event.Skip()
        wind = wx.PopupTransientWindow(self, wx.RAISED_BORDER)
        if self.auto_save.GetValue():
            info = "'auto-save' is currently selected. Temperature bounds will be saved when you click 'next' or 'back'."
        else:
            info = "'auto-save' is not selected.  Temperature bounds will only be saved when you click 'save'."
        text = wx.StaticText(wind, -1, info)
        box = wx.StaticBox(wind, -1, 'Info:')
        boxSizer = wx.StaticBoxSizer(box, wx.VERTICAL)
        boxSizer.Add(text, 5, wx.ALL | wx.CENTER)
        exit_btn = wx.Button(wind, wx.ID_EXIT, 'Close')
        wind.Bind(wx.EVT_BUTTON, lambda evt: on_close(evt, wind), exit_btn)
        boxSizer.Add(exit_btn, 5, wx.ALL | wx.CENTER)
        wind.SetSizer(boxSizer)
        wind.Layout()
        wind.Popup()
def on_info_click ( self , event ) : def on_close ( event , wind ) : wind . Close ( ) wind . Destroy ( ) event . Skip ( ) wind = wx . PopupTransientWindow ( self , wx . RAISED_BORDER ) if self . auto_save . GetValue ( ) : info = "'auto-save' is currently selected. Temperature bounds will be saved when you click 'next' or 'back'." else : info = "'auto-save' is not selected.  Temperature bounds will only be saved when you click 'save'." text = wx . StaticText ( wind , - 1 , info ) box = wx . StaticBox ( wind , - 1 , 'Info:' ) boxSizer = wx . StaticBoxSizer ( box , wx . VERTICAL ) boxSizer . Add ( text , 5 , wx . ALL | wx . CENTER ) exit_btn = wx . Button ( wind , wx . ID_EXIT , 'Close' ) wind . Bind ( wx . EVT_BUTTON , lambda evt : on_close ( evt , wind ) , exit_btn ) boxSizer . Add ( exit_btn , 5 , wx . ALL | wx . CENTER ) wind . SetSizer ( boxSizer ) wind . Layout ( ) wind . Popup ( )
Show popup info window when user clicks "?"