def __init__(self, prg, host):
    Window.__init__(self, prg, host)
    self.prg = prg
    self.resizeTo(16, (16 * 5))
    self.moveTo(8, 8)
    self.controller = app.cu_editor.PaletteDialogController(self)
    self.setTextBuffer(app.text_buffer.TextBuffer(self.program))
def __init__(self, prg, host):
    Window.__init__(self, prg, host)
    self.prg = prg
    self.resizeTo(16, (16 * 5))
    self.moveTo(8, 8)
    self.controller = app.cu_editor.PaletteDialogController(self)
    self.setTextBuffer(app.text_buffer.TextBuffer(self.program))