Gtk.TargetEntry¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| flags | int | r/w | Gtk.TargetFlagsfor DND | 
| info | int | r/w | an application-assigned integer ID which will get passed as a parameter to e.g the Gtk.Widget::selection-getsignal. It allows the application to identify the target type without extensive string compares. | 
| target | str | r/w | a string representation of the target type | 
Details¶
- 
class Gtk.TargetEntry¶
- A - Gtk.TargetEntryrepresents a single type of data than can be supplied for by a widget for a selection or for supplied or received during drag-and-drop.- 
classmethod new(target, flags, info)[source]¶
- Parameters: - target (str) – String identifier for target
- flags (int) – Set of flags, seeGtk.TargetFlags
- info (int) – an ID that will be passed back to the application
 - Returns: - a pointer to a new - Gtk.TargetEntry. Free with- Gtk.TargetEntry.free()- Return type: - Makes a new - Gtk.TargetEntry.
- target (
 - 
copy()[source]¶
- Returns: - a pointer to a copy of self. Free with - Gtk.TargetEntry.free()- Return type: - Gtk.TargetEntry- Makes a copy of a - Gtk.TargetEntryand its data.
 - 
free()[source]¶
- Frees a - Gtk.TargetEntryreturned from- Gtk.TargetEntry.new() or- Gtk.TargetEntry.copy().
 
- 
classmethod