gtk.Plug — A toplevel window for embedding into other processes.
class gtk.Plug(gtk.Window): |
Functions
def gtk.plug_new_for_display(display
, socket_id
)
+--gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.Window +-- gtk.Plug
|
gtk.Container Signal Prototypes
"embedded" | def callback( |
Together with gtk.Socket
, gtk.Plug
provides the
ability to embed widgets from one process into another process in a fashion
that is transparent to the user. One process creates a gtk.Socket
widget
and, passes the ID of that widgets window to the other process, which then
creates a gtk.Plug
with that
window ID. Any widgets contained in the gtk.Plug
then will
appear inside the first applications window.
gtk.Plug(socket_id
)
| the window ID of the socket, or 0. |
Returns : | a gtk.Widget |
Creates a new gtk.Plug
widget inside
the gtk.Socket
identified by socket_id
. If
socket_id
is 0, the plug is left "unplugged" and can
later be plugged into a gtk.Socket
by the
gtk.Socket.add_id
()
method.
def construct(socket_id
)
| the window ID of the socket |
This method is not available in PyGTK 2.2 and above.
The construct
() method finishes the
initialization of plug for the gtk.Socket
identified by socket_id
. This method will generally
only be used by subclasses of gtk.Plug
.
def get_id()
Returns : | the window ID for the plug |
The get_id
() method returns the window
ID of the gtk.Plug
widget, which
can be used to embed this window inside another window, for instance with
gtk.Socket.add_id
().
def gtk.plug_new_for_display(display
, socket_id
)
| the gtk.gdk.Display
associated with
socket_id's . |
| the window ID of the socket's window. |
Returns : | a gtk.Plug
object |
This function is available in PyGTK 2.2 and above.
The gtk.plug_new_for_display
() function
creates a new plug widget inside the gtk.Socket
specified
by socket_id
on the gtk.gdk.Display
specified by display.
def callback(plug
, user_param1
, ...
)
| the plug that received the signal |
| the first user parameter (if any) specified
with the connect () |
| additional user parameters (if any) |
The "embedded" signal is emitted when the plug window is reparented to the socket window.