Beispiel #1
0
    def get_log(self, output):
        """ default logger view"""

        scrolledwindow = Gtk.ScrolledWindow()
        scrolledwindow.set_hexpand(True)
        scrolledwindow.set_vexpand(True)

        textview = widgets.SourceView()
        textbuffer = textview.get_buffer()
        textbuffer.set_text(output)

        textview.set_editable(False)

        scrolledwindow.add(textview)
        scrolledwindow.show_all()

        return scrolledwindow
Beispiel #2
0
    def get_log(self, output):
        """ bruter read function, (parser could be implemented?)"""

        scrolledwindow = Gtk.ScrolledWindow()
        scrolledwindow.set_hexpand(True)
        scrolledwindow.set_vexpand(True)

        textview = widgets.SourceView()
        textbuffer = textview.get_buffer()
        textbuffer.set_text(output)

        textview.set_editable(False)

        scrolledwindow.add(textview)
        textview.show()

        return scrolledwindow