Gladeui.Signal

g GObject.Object GObject.Object Gladeui.Signal Gladeui.Signal GObject.Object->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)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

object

GObject.Object

r

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) – a Gladeui.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:

Gladeui.Signal

Creates a new Gladeui.Signal with the given parameters.

classmethod read(node, adaptor)
Parameters:
Returns:

A newly created Gladeui.Signal

Return type:

Gladeui.Signal

Reads and creates a ner Gladeui.Signal based on node

clone()
Returns:

a new Gladeui.Signal with the same attributes as self

Return type:

Gladeui.Signal

equal(sig2)
Parameters:

sig2 (Gladeui.Signal) – a Gladeui.Signal

Returns:

True if self and sig2 have identical attributes, False otherwise

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_detail()
Returns:

the detail of the signal

Return type:

str

Get the signal detail.

get_handler()
Returns:

the handler of the signal

Return type:

str

Get the signal handler.

get_name()
Returns:

The name of the signal

Return type:

str

Get the name of the signal from the signal definition.

get_support_warning()
Return type:

str

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.

get_userdata()
Returns:

the userdata of the signal

Return type:

str

Get the userdata handler.

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_support_warning(support_warning)
Parameters:

support_warning (str) –

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:

Writes self to node

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

Gladeui.Signal.props.swapped
Name:

swapped

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the user data is swapped with the instance for the handler

Gladeui.Signal.props.userdata
Name:

userdata

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The user data for this signal