Known subclasses: kiwi.ui.widgets.spinbutton.SpinButton

A SpinButton subclass which adds supports for the Kiwi Framework. This widget supports validation The only allowed types for spinbutton are int and float.

Method __init__ Undocumented
Method do_changed Called when the content of the spinbutton changes.
Method read No summary
Method update Update the content value of the widget. @param value:
Method do_expose_event Undocumented
Method do_size_allocate Undocumented
Method do_realize Undocumented
Method do_unrealize Undocumented
Method set_tooltip Implement in subclass
Method set_pixbuf Implement in subclass
Method update_background Implement in subclass
Method get_background Implement in subclass
Method get_icon_window Implement in subclass

Inherited from ProxyWidgetMixin (via ValidatableProxyWidgetMixin):

Class Variable allowed_data_types A list of types which we are allowed to use in this class.
Method prop_set_data_type Set the data type for the widget
Method set_data_format Undocumented
Method set_options_for_datatype No summary
Method _as_string Convert a value to a string @param data: data to convert
Method _from_string No summary

Inherited from ProxyWidgetMixin (via ValidatableProxyWidgetMixin):

Class Variable allowed_data_types A list of types which we are allowed to use in this class.
Method prop_set_data_type Set the data type for the widget
Method set_data_format Undocumented
Method set_options_for_datatype No summary
Method _as_string Convert a value to a string @param data: data to convert
Method _from_string No summary

Inherited from ProxyWidgetMixin (via ValidatableProxyWidgetMixin):

Class Variable allowed_data_types A list of types which we are allowed to use in this class.
Method prop_set_data_type Set the data type for the widget
Method set_data_format Undocumented
Method set_options_for_datatype No summary
Method _as_string Convert a value to a string @param data: data to convert
Method _from_string No summary
def __init__(self, data_type=int):
def do_changed(self):

Called when the content of the spinbutton changes.

def read(self):

Get the content of the widget. The type of the return value

ReturnsNone if the user input a invalid value (type: Must matche the data-type property.)
def update(self, data):

Update the content value of the widget.

Parametersvalue
def do_expose_event(self, event):
Undocumented
def do_size_allocate(self, allocation):
Undocumented
def do_realize(self):
Undocumented
def do_unrealize(self):
Undocumented
def set_tooltip(self, text):
def set_pixbuf(self, pixbuf):
def update_background(self, color):
def get_background(self):
def get_icon_window(self):
API Documentation for Kiwi, generated by pydoctor at 2022-01-28 06:05:37.