def __init__(self, parent, game_id, install=True, path=None,
                 installer=None, beta=False):
        self.glade = gtk.glade.XML(os.path.join(PACKAGE_DIRECTORY,
                                   "externalwindow.glade"))
        self.window = self.glade.get_widget("externalwindow")
        self.window.set_icon(ICON)
        self.textview = self.glade.get_widget("outputview")
        self.textview.modify_base(gtk.STATE_NORMAL,
                                  gtk.gdk.color_parse('black'))
        self.textview.modify_text(gtk.STATE_NORMAL,
                                  gtk.gdk.color_parse('green'))
        self.spinner = self.glade.get_widget("spinner1")
        self.buf = gtk.TextBuffer()
        self.textview.set_buffer(self.buf)
        signals = {"on_action_activated": self.do_action}
        self.button = self.glade.get_widget("okbutton")
        self.button.set_label("Cancel")
        self.glade.signal_autoconnect(signals)
        self.window.show()
        self.parent = parent
        self.install_mode = install
        self.game_id = game_id
        self.path = path
        if install:
            self.window.set_title("Installing %s" % game_id)
            self.launch_install(game_id, path, installer, beta)
        else:
            self.window.set_title("Uninstalling %s" % game_id)
            self.button.set_label("Ok")
            self.button.set_sensitive(False)
            self.launch_uninstall(game_id, beta)
dataset/ETHPy150Open Morgawr/gogonlinux/gog_utils/gog_gui.py/ExternalOutputWindow.__init__/original