Gtk.TargetEntry¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
flags |
r/w |
|
|
info |
r/w |
an application-assigned integer ID which will get passed as a parameter to e.g the |
|
target |
r/w |
a string representation of the target type |
Methods¶
class |
|
|
|
|
Details¶
- class Gtk.TargetEntry¶
A
Gtk.TargetEntry
represents 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 targetflags (
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 withGtk.TargetEntry.free
()- Return type:
Makes a new
Gtk.TargetEntry
.
- copy()[source]¶
- Returns:
a pointer to a copy of self. Free with
Gtk.TargetEntry.free
()- Return type:
Makes a copy of a
Gtk.TargetEntry
and its data.
- free()[source]¶
Frees a
Gtk.TargetEntry
returned fromGtk.TargetEntry.new
() orGtk.TargetEntry.copy
().