Class gtk.Button
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gtk.Button(Label)
Button is a class to create a button
|
Field Attributes | Field Name and Description |
---|---|
'clicked' signal
|
|
'enterkeypressed' signal
|
|
'mouseout' signal
|
|
'mouseover' signal
|
Method Attributes | Method Name and Description |
---|---|
disable()
Disable button button no longer function
|
|
enable()
Enable button button functions normally
|
|
getImage()
Returns the image widget
|
|
getLabel()
Returns the text from the label of the button
|
|
Hide loading Image
|
|
resizeHeightComposite(height)
|
|
resizeWidthComposite(width)
|
|
setAsImage(imageWidget)
Change the button shape to be image shape
|
|
setButtonShape(imageObj)
|
|
setImage(imageWidget)
Set the image to be displayed next to the label
|
|
setLabel(labeWidget)
Sets label to be displayed in the button
|
|
setTabindex(index)
Set tab index
|
|
setTextLabel(strName)
Set text to button
|
|
show loading Image
|
- Methods borrowed from class gtk.Widget:
- activate, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showTooltip, sizeRequest
- Methods borrowed from class gobject.GObject:
- connect, disconnect, emit
Class Detail
gtk.Button(Label)
Button is a class to create a button
- Parameters:
- {String} Label
- text to be displayed by in the middle of button
Field Detail
BUTTON_CLICKED
'clicked' signal
BUTTON_ENTERKEYPRESSED
'enterkeypressed' signal
BUTTON_MOUSEOUT
'mouseout' signal
BUTTON_MOUSEOVER
'mouseover' signal
Method Detail
disable()
Disable button button no longer function
enable()
Enable button button functions normally
{gtk.Image}
getImage()
Returns the image widget
- Returns:
- {gtk.Image} imageWidget
{gtk.Label}
getLabel()
Returns the text from the label of the button
- Returns:
- {gtk.Label} labelWidget
hideLoading()
Hide loading Image
resizeHeightComposite(height)
- Parameters:
- height
resizeWidthComposite(width)
- Parameters:
- width
setAsImage(imageWidget)
Change the button shape to be image shape
- Parameters:
- {gtk.Image} imageWidget
setButtonShape(imageObj)
- Parameters:
- imageObj
setImage(imageWidget)
Set the image to be displayed next to the label
- Parameters:
- {gtk.Image} imageWidget
setLabel(labeWidget)
Sets label to be displayed in the button
- Parameters:
- {gtk.Label} labeWidget
setTabindex(index)
Set tab index
- Parameters:
- {Integer} index
setTextLabel(strName)
Set text to button
- Parameters:
- {String} strName
- name of button
showLoading()
show loading Image