Gladeui.Signal¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(sig_def, handler, userdata, after, swapped) | 
| class | read(node, adaptor) | 
| clone() | |
| equal(sig2) | |
| get_after() | |
| get_def() | |
| get_detail() | |
| get_handler() | |
| get_name() | |
| get_support_warning() | |
| get_swapped() | |
| get_userdata() | |
| set_after(after) | |
| set_detail(detail) | |
| set_handler(handler) | |
| set_support_warning(support_warning) | |
| set_swapped(swapped) | |
| set_userdata(userdata) | |
| write(context, node) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| after | bool | r/w | Whether this signal is run after default handlers | 
| class | int | r/w/co | The signal class of this signal | 
| detail | str | r/w | The detail for this signal | 
| handler | str | r/w | The handler for this signal | 
| support-warning | str | r/w | The versioning support warning for this signal | 
| swapped | bool | r/w | Whether the user data is swapped with the instance for the handler | 
| userdata | str | r/w | The user data for this signal | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Gladeui.Signal(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - Gladeui.SignalClass- 
classmethod new(sig_def, handler, userdata, after, swapped)¶
- Parameters: - sig_def (Gladeui.SignalDef) – aGladeui.SignalDef
- handler (str) – a handler function for the signal
- userdata (str) – the userdata for this signal
- after (bool) – whether this handler should be called after the default emission phase
- swapped (bool) – whether the handler’s user data should be swapped with the emitter instance.
 - Returns: - the new - Gladeui.Signal- Return type: - Creates a new - Gladeui.Signalwith the given parameters.
- sig_def (
 - 
classmethod read(node, adaptor)¶
- Parameters: - node (Gladeui.XmlNode) – TheGladeui.XmlNodeto read
- adaptor (Gladeui.WidgetAdaptor) – TheGladeui.WidgetAdaptorfor the widget
 - Returns: - A newly created - Gladeui.Signal- Return type: - Reads and creates a ner - Gladeui.Signalbased on node
- node (
 - 
clone()¶
- Returns: - a new - Gladeui.Signalwith the same attributes as self- Return type: - Gladeui.Signal
 - 
equal(sig2)¶
- Parameters: - sig2 ( - Gladeui.Signal) – a- Gladeui.Signal- Returns: - Trueif self and sig2 have identical attributes,- Falseotherwise- Return type: - bool
 - 
get_after()¶
- Returns: - Whether the signal handler should be called after the default handler - Return type: - bool- Get whether the handler should be called before or after the default handler of the signal. 
 - 
get_def()¶
- Returns: - the - Gladeui.SignalDef- Return type: - Gladeui.SignalDef- Get the signal definition. 
 - 
get_name()¶
- Returns: - The name of the signal - Return type: - str- Get the name of the signal from the signal definition. 
 - 
get_swapped()¶
- Returns: - whether the instance and userdata arguments should be swapped - Return type: - bool- Get whether the instance and userdata arguments should be swapped. 
 - 
set_after(after)¶
- Parameters: - after ( - bool) – if the signal handler should be called after the default handler- Set whether the handler should be called before or after the default handler of the signal. 
 - 
set_detail(detail)¶
- Parameters: - detail ( - str) – the detail of the signal- Set the detail of the signal. 
 - 
set_handler(handler)¶
- Parameters: - handler ( - str) – the handler of the signal- Set the handler of the signal. 
 - 
set_swapped(swapped)¶
- Parameters: - swapped ( - bool) – if the instance and userdata arguments should be swapped- Set whether the instance and userdata arguments should be swapped. 
 - 
set_userdata(userdata)¶
- Parameters: - userdata ( - str) – the userdata of the signal- Set the userdata of the signal. 
 - 
write(context, node)¶
- Parameters: - context (Gladeui.XmlContext) – AGladeui.XmlContext
- node (Gladeui.XmlNode) – AGladeui.XmlNode
 - Writes self to node 
- context (
 
- 
classmethod 
Property Details¶
- 
Gladeui.Signal.props.after¶
- Name: - after- Type: - bool- Default Value: - False- Flags: - READABLE,- WRITABLE- Whether this signal is run after default handlers 
- 
Gladeui.Signal.props.class_¶
- Name: - class- Type: - int- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The signal class of this signal 
- 
Gladeui.Signal.props.detail¶
- Name: - detail- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE- The detail for this signal 
- 
Gladeui.Signal.props.handler¶
- Name: - handler- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE- The handler for this signal 
- 
Gladeui.Signal.props.support_warning¶
- Name: - support-warning- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE- The versioning support warning for this signal