Package dtk :: Package ui :: Module button :: Class Button

Class Button

source code


Button with Deepin UI style.

Instance Methods
 
__init__(self, label, font_size=DEFAULT_FONT_SIZE)
Initialize Button class.
source code
 
set_label(self, label, font_size=DEFAULT_FONT_SIZE)
Set label of Button.
source code
Method Details

__init__(self, label, font_size=DEFAULT_FONT_SIZE)
(Constructor)

source code 

Initialize Button class.

Parameters:
  • label - Button label.
  • font_size - Button label font size.

set_label(self, label, font_size=DEFAULT_FONT_SIZE)

source code 

Set label of Button.

Parameters:
  • label - Button label.
  • font_size - Button label font size.