Skip to content

Commit c021472

Browse files
author
Roman Miroshnychenko (Work)
committed
2 parents 03fb910 + 09cd9a3 commit c021472

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

lib/pyxbmct/addonwindow.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -488,26 +488,26 @@ def connect(self, event, callable):
488488
Connect an event to a function.
489489
490490
: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.
492492
493493
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
495495
provides more action codes.
496496
497497
You can connect the following Controls: :class:`Button`, :class:`RadioButton`
498498
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.
500500
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:
502502
``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.
504504
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.
506506
507507
.. warning:: For connection you must provide a function object without brackets ``()``,
508508
not a function call!
509509
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.
511511
512512
Examples::
513513
@@ -516,8 +516,6 @@ def connect(self, event, callable):
516516
or::
517517
518518
self.connect(ACTION_NAV_BACK, self.close)
519-
520-
.. _xbmcgui: http://romanvm.github.io/xbmcstubs/docs/xbmcgui-module.html
521519
"""
522520
try:
523521
self.disconnect(event)

0 commit comments

Comments
 (0)