def __init__(self, simulator):
    'Instantiate a Display (thas is: a window with a display widget and\n        simulation controls) from a simulator.\n\n        :param simulator: The simulator to use.'
    self.simulator = simulator
    if (not self.display):
        if ('tiles' in self.simulator.palette_info):
            self.display = NewDisplayWidget(self.simulator)
        else:
            self.display = DisplayWidget(self.simulator)
    if (self.control is None):
        self.control = ControlWidget(self.simulator)
    from .mainwin import ZasimMainWindow
    self.window = ZasimMainWindow(self.simulator, self.display, self.control)
    display_objects.append(self.window)
    self.window.show()
Instantiate a Display (thas is: a window with a display widget and
simulation controls) from a simulator.

:param simulator: The simulator to use.
def __init__(self, simulator):
    'Instantiate a Display (thas is: a window with a display widget and\n        simulation controls) from a simulator.\n\n        :param simulator: The simulator to use.'
    self.simulator = simulator
    if (not self.display):
        if ('tiles' in self.simulator.palette_info):
            self.display = NewDisplayWidget(self.simulator)
        else:
            self.display = DisplayWidget(self.simulator)
    if (self.control is None):
        self.control = ControlWidget(self.simulator)
    from .mainwin import ZasimMainWindow
    self.window = ZasimMainWindow(self.simulator, self.display, self.control)
    display_objects.append(self.window)
    self.window.show()