@@ -488,26 +488,26 @@ def connect(self, event, callable):
488
488
Connect an event to a function.
489
489
490
490
:param event: event to be connected.
491
- :param callable: callable object (a function or a method) the event is being connected to.
491
+ :param callable: callable object the event is connected to.
492
492
493
493
An event can be an inctance of a Control object or an integer key action code.
494
- Several basic key action codes are provided by PyXBMCt. `xbmcgui`_ module
494
+ Several basic key action codes are provided by PyXBMCt. `` xbmcgui`` module
495
495
provides more action codes.
496
496
497
497
You can connect the following Controls: :class:`Button`, :class:`RadioButton`
498
498
and :class:`List`. Other Controls do not generate any control events when activated
499
- so their connections won't have any effect .
499
+ so their connections won't work .
500
500
501
- To monitor the state of :class:`Slider` Control you need to connect the following key actions:
501
+ To catch :class:`Slider` events you need to connect the following key actions:
502
502
``ACTION_MOVE_LEFT``, ``ACTION_MOVE_RIGHT`` and ``ACTION_MOUSE_DRAG``, and do a check
503
- whether the :class:` Slider` instance is focused.
503
+ whether the `` Slider` ` instance is focused.
504
504
505
- ``callable`` parameter is a function or a method to be executed when the event is fired.
505
+ ``callable`` parameter is a function or a method to be executed on when the event is fired.
506
506
507
507
.. warning:: For connection you must provide a function object without brackets ``()``,
508
508
not a function call!
509
509
510
- ``lambda`` can be used to call another function or method with parameters known at runtime.
510
+ ``lambda`` can be used as to call another function or method with parameters known at runtime.
511
511
512
512
Examples::
513
513
@@ -516,8 +516,6 @@ def connect(self, event, callable):
516
516
or::
517
517
518
518
self.connect(ACTION_NAV_BACK, self.close)
519
-
520
- .. _xbmcgui: http://romanvm.github.io/xbmcstubs/docs/xbmcgui-module.html
521
519
"""
522
520
try :
523
521
self .disconnect (event )
0 commit comments