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.UsbDeviceWidgetstruct is opaque and should not be accessed directly.- classmethod new(session, device_format_string)¶
 - Parameters:
 session (
SpiceClientGLib.Session) –SpiceClientGLib.Sessionfor which to widget will control USB redirectiondevice_format_string (
strorNone) – String passed toSpiceClientGLib.UsbDevice.get_description()
- Returns:
 a new
SpiceClientGtk.UsbDeviceWidgetinstance- 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.UsbDeviceboxed object corresponding to the added deviceerror (
GLib.Error) –GLib.Errordescribing the reason why the connect failed
The
SpiceClientGtk.UsbDeviceWidget::connect-failedsignal 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.SessionthisSpiceClientGtk.UsbDeviceWidgetis associated with