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
gtk.Container Signal Prototypes
def callback( | |
def callback( |
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.
def callback(inputdialog
, deviceid
, user_param1
, ...
)
| the inputdialog that received the signal |
| the ID of the newly disabled device. |
| the first user parameter (if any) specified
with the connect () |
| 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
.
def callback(inputdialog
, deviceid
, user_param1
, ...
)
| the inputdialog that received the signal |
| the ID of the newly disabled device. |
| the first user parameter (if any) specified
with the connect () |
| 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
.