Module disco :: Class ServiceDiscoveryWindow
[hide private]
[frames] | no frames]

Class ServiceDiscoveryWindow

source code


Class that represents the Services Discovery window
Instance Methods [hide private]
 
__init__(self, account, jid='', node='', address_entry=False, parent=None, initial_identities=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get_account(self) source code
 
_set_account(self, value) source code
 
_initial_state(self)
Set some initial state on the window.
source code
 
_set_window_banner_text(self, text, text_after=None) source code
 
paint_banner(self)
Repaint the banner with theme color
source code
 
disconnect_style_event(self) source code
 
connect_style_event(self, set_fg=False, set_bg=False) source code
 
_on_style_set_event(self, widget, style, *opts)
opts[0] == True -> set fg color opts[1] == True -> set bg color
source code
 
destroy(self, chain=False)
Close the browser.
source code
 
travel(self, jid, node)
Travel to an agent within the current services window
source code
 
_travel(self, jid, node, identities, features, data)
Continuation of travel
source code
 
open(self, jid, node)
Open an agent.
source code
 
on_service_discovery_window_destroy(self, widget) source code
 
on_close_button_clicked(self, widget) source code
 
on_address_comboboxentry_changed(self, widget) source code
 
on_go_button_clicked(self, widget) source code
 
on_services_treeview_row_activated(self, widget, path, col=0) source code
 
on_services_treeview_selection_changed(self, widget) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, account, jid='', node='', address_entry=False, parent=None, initial_identities=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_get_account(self)

source code 
Decorators:
  • @property

_set_account(self, value)

source code 
Decorators:
  • @property

_initial_state(self)

source code 
Set some initial state on the window. Separated in a method because it's handy to use within browser's cleanup method

_set_window_banner_text(self, text, text_after=None)

source code 

paint_banner(self)

source code 
Repaint the banner with theme color

disconnect_style_event(self)

source code 

connect_style_event(self, set_fg=False, set_bg=False)

source code 

_on_style_set_event(self, widget, style, *opts)

source code 
Set style of widget from style class *.Frame.Eventbox
opts[0] == True -> set fg color opts[1] == True -> set bg color

destroy(self, chain=False)

source code 
Close the browser. This can optionally close its children and propagate to the parent. This should happen on actions like register, or join to kill off the entire browser chain

travel(self, jid, node)

source code 
Travel to an agent within the current services window

_travel(self, jid, node, identities, features, data)

source code 
Continuation of travel

open(self, jid, node)

source code 
Open an agent. By default, this happens in a new window

on_service_discovery_window_destroy(self, widget)

source code 

on_close_button_clicked(self, widget)

source code 

on_address_comboboxentry_changed(self, widget)

source code 

on_go_button_clicked(self, widget)

source code 

on_services_treeview_row_activated(self, widget, path, col=0)

source code 

on_services_treeview_selection_changed(self, widget)

source code