# Number window control panel
##################################################
class control_panel(wx.Panel):
- """!
+ """
A control panel with wx widgits to control the averaging.
"""
def __init__(self, parent):
- """!
+ """
Create a new control panel.
@param parent the wx parent window
"""
self.ext_controller.subscribe(msg_key, self.handle_msg)
def show_gauges(self, show_gauge):
- """!
+ """
Show or hide the gauges.
If this is real, never show the imaginary gauge.
@param show_gauge true to show
else: self.gauge_imag.Hide()
def handle_msg(self, msg):
- """!
+ """
Handle a message from the message queue.
Convert the string based message into a float or complex.
If more than one number was read, only take the last number.