__init__(self,
id,
label='',
stock=None,
image=None,
callback=None,
expand_policy=None,
active=True,
visible=True)
(Constructor)
Push button constructor.
It may be a stock button, that is, a pre-defined button that may
have an associated image and translated label text.
It may have an image either by using a stock button or giving image
as parameter, but this image will only be visible if system
configuration wants that, GTK does that with gtk-button-images property
present on gtk.Settings.
-
- Parameters:
label -
what text to show, if stock isn't provided.
stock -
optional. One of stock_items.
image -
image filename (or Image instance) to use.
callback -
the function (or list of functions) to call when button is
pressed. Function will get as parameter:
-
App reference
-
Button reference
expand_policy -
how this widget should fit space, see ExpandPolicy.Policy.Rule.
- Overrides:
eagle._EGWidget.__init__
|