SpiceClientGtk.UsbDeviceWidget¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Format string for device description |
||
r/w/co |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Class Details¶
- class SpiceClientGtk.UsbDeviceWidget(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
SpiceClientGtk.UsbDeviceWidget
struct is opaque and should not be accessed directly.- classmethod new(session, device_format_string)¶
- Parameters:
session (
SpiceClientGLib.Session
) –SpiceClientGLib.Session
for which to widget will control USB redirectiondevice_format_string (
str
orNone
) – String passed toSpiceClientGLib.UsbDevice.get_description
()
- Returns:
a new
SpiceClientGtk.UsbDeviceWidget
instance- Return type:
Creates a new widget to control USB redirection.
Signal Details¶
- SpiceClientGtk.UsbDeviceWidget.signals.connect_failed(usb_device_widget, device, error)¶
- Signal Name:
connect-failed
- Flags:
- Parameters:
usb_device_widget (
SpiceClientGtk.UsbDeviceWidget
) – The object which received the signaldevice (
SpiceClientGLib.UsbDevice
) –SpiceClientGLib.UsbDevice
boxed object corresponding to the added deviceerror (
GLib.Error
) –GLib.Error
describing the reason why the connect failed
The
SpiceClientGtk.UsbDeviceWidget
::connect-failed
signal is emitted whenever the user has requested for a device to be redirected and this has failed.
Property Details¶
- SpiceClientGtk.UsbDeviceWidget.props.device_format_string¶
- Name:
device-format-string
- Type:
- Default Value:
- Flags:
Format string to pass to
SpiceClientGLib.UsbDevice.get_description
() for getting the device USB descriptions.
- SpiceClientGtk.UsbDeviceWidget.props.session¶
- Name:
session
- Type:
- Default Value:
- Flags:
SpiceClientGLib.Session
thisSpiceClientGtk.UsbDeviceWidget
is associated with