$setText(<text:string>) |
This function sets the text for this button. |
<string> $text() |
Returns the current text of the button |
$setImage(<image_id:string>) |
Sets the image to be displayed on this label. Giving empty argument clears the pixmap See the image identifier documentation for the explaination of the <image_id> parameter. |
$clickEvent() |
This function is called by the framework when the button is clicked. You can reimplement it to handle the user click events. The default implementation emits the $clicked() signal, so it is easy to handle the clicks from many buttons without reimplementing the $clickEvent() for every one. Note: If you reimplement this function to catch the user click events, you will have to emit the signal by yourself (if you still need it , obviously). |