Reputation: 11
I am making a simple Python program which I want to run gnome terminal into it.
I've done some research and I have found this answer, but I want to embed gnome terminal not xterm. The linked question's answer uses xterm -into
but gnome-terminal
does not seem to have a comparable option.
Upvotes: 1
Views: 442
Reputation: 110301
gnome-terminal is a GTK app, Tkinter creates TCL app: both libraries will interact with the underlying window manager in very different ways and likely with some conflict (in handling/consuming input events, for example).
Since the embed option does not exist, to start with, I´d say this is not feasible but for setting a raw framebuffer inside the tkinter app, and somehow routing the gnome-terminal to use an emulated/contained window manager in that framebuffer - that would be at least an order of magnitude more complex than any answer you might be looking for.
Instead, if you want to give the user of your app a raw shell in a terminal app, and can't live with simply popping it up in another window, is to re-do your application using GTK instead of tkinter, and check in the gnome-terminal development docs/source code if the main terminal widget can be used stand-alone in another app.
Upvotes: 1