GTK+ Vte.Terminal().fork_command_full removed?

2019-02-19 04:09发布

问题:

I noticed this last week. All my code on ubuntu 15.04 was working fine using

Vte.Terminal().fork_command_full

Also this documentation site was showing this function as well, but does not now. Has this function been removed? If so, then what is the next simplest alternative to get a virtual terminal widget working.
As this answer suggests the use of the above command, what is the next best way to get this widget up and running?

NOTE: I am using python3 for this code

回答1:

Update: This answer is now deprecated. Please see the answer by @Maximus instead.


The function call for the C API has been renamed from

vte_terminal_fork_command_full ()

to

vte_terminal_spawn_sync ()

since VTE 0.38.

As a result, the corresponding Python function has been renamed from fork_command_full() to spawn_sync().



回答2:

The function has been renamed from

vte_terminal_spawn_sync()

to

vte_terminal_spawn_async()

Since version VTE 0.48