gtk.InputDialog — a dialog for configuring devices for the XInput extension.
+-- gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.Window +-- gtk.Dialog +-- gtk.InputDialog |
gobject.GObject Signal Prototypes
gtk.Container Signal Prototypes
"disable-device" | def callback(inputdialog, deviceid, user_param1, ...) |
"enable-device" | def callback(inputdialog, deviceid, user_param1, ...) |
This widget is considered too specialized or little-used for PyGTK, and will in the future be moved to some other package. If your application needs this widget, feel free to use it, as the widget does work and is useful in some applications; it's just not of general interest. However, it will eventually move out of the PyGTK distribution.
gtk.InputDialog displays a dialog which allows the user to configure XInput extension devices. For each device, they can control the mode of the device (disabled, screen-relative, or window-relative), the mapping of axes to coordinates, and the mapping of the devices macro keys to key press events. gtk.InputDialog contains two buttons to which the application can connect; one for closing the dialog, and one for saving the changes. No actions are bound to these by default. The changes that the user makes take effect immediately.
|
inputdialog : | the inputdialog that received the signal |
deviceid : | the ID of the newly disabled device. |
user_param1 : | the first user parameter (if any) specified with the connect() method |
... : | additional user parameters (if any) |
The "disable-device" signal is emitted when the user changes the mode of a device from a gtk.gdk.MODE_SCREEN or gtk.gdk.MODE_WINDOW to gtk.gdk.MODE_ENABLED.
|
inputdialog : | the inputdialog that received the signal |
deviceid : | the ID of the newly disabled device. |
user_param1 : | the first user parameter (if any) specified with the connect() method |
... : | additional user parameters (if any) |
The "enable-device" signal is emitted when the user changes the mode of a device from gtk.gdk.MODE_DISABLED to a gtk.gdk.MODE_SCREEN or gtk.gdk.MODE_WINDOW.