I’m trying to use the command panel_output
This is the full code
class MyClass:
def __init__(self, window, text):
self.name = 'Output Panel '
self.window, self.view = find_in_opend_view(self.name)
if self.view is None:
self.window = window
self.view = self.window.new_file()
self.view.set_name(self.name)
self.view.run_command('toggle_setting', {'setting': 'word_wrap'})
self.view.set_scratch(True)
self.window.focus_view(self.view)
self.view.set_read_only(False)
self.view.run_command('panel_output', {'text': text})
self.view.set_read_only(True)
MyClass(self.windows, 'Test Text')
But when I run the code, the new window opens, but I can’t see the text, what I’m doing wrong? there is someone who has used this option?