gtk.PlugA toplevel window for embedding into other
processes.Synopsisgtk.Pluggtk.Windowgtk.Plugsocket_idconstructsocket_idget_idget_embeddedget_socket_windowFunctionsgtk.plug_new_for_displaydisplaysocket_idAncestry+-- gobject.GObject
+-- gtk.Object
+-- gtk.Widget
+-- gtk.Container
+-- gtk.Bin
+-- gtk.Window
+-- gtk.Plug
gtk.Plug Propertiesgtk.Object Propertiesgtk.Widget Propertiesgtk.Container Propertiesgtk.Window Properties
"embedded"ReadTrue if the plug is embedded in a socket.
Default value: False
Available in GTK+ 2.12."socket-window"ReadThe window of the socket the plug is embedded in.
Available in GTK+ 2.14.
gtk.Plug Style Propertiesgtk.Widget Style Propertiesgtk.Plug Signal Prototypesgobject.GObject Signal Prototypesgtk.Object Signal Prototypesgtk.Widget Signal Prototypesgtk.Container Signal Prototypesgtk.Window Signal Prototypes"embedded"callbackpluguser_param1...DescriptionTogether 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.Constructorgtk.Plugsocket_idsocket_id : the window ID of the socket, or
0.Returns :a gtk.WidgetCreates 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.Methodsgtk.Plug.constructconstructsocket_idsocket_id :the window ID of the
socketThis 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.gtk.Plug.get_idget_idReturns :the window ID for the plugThe 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().gtk.Socket.get_embeddedget_embeddedReturns :True if the plug is embedded in
a socket.This method is available in PyGTK 2.14 and above.
The get_embedded() method determines whether
the plug is embedded in a socket.
gtk.Socket.get_socket_windowget_socket_windowReturns :the window of the socket if available, or
None.This method is available in PyGTK 2.14 and above.
The get_socket_window() method retrieves the
socket the plug is embedded in.
Functionsgtk.plug_new_for_displaygtk.plug_new_for_displaydisplaysocket_iddisplay :the gtk.gdk.Display
associated with
socket_id's.socket_id : the window ID of the socket's
window.Returns :a gtk.Plug
objectThis 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.SignalsThe "embedded" gtk.Plug Signalcallbackpluguser_param1...plug :the plug that received the
signaluser_param1 :the first user parameter (if any) specified
with the connect()
method... :additional user parameters (if
any)The "embedded" signal is emitted when the plug window is
reparented to the socket window.