justbytes_gui._config module

Highest level code for module.

class justbytes_gui._config.BaseConfig(master, label_str)

Bases: justbytes_gui._config.Config

Configuration gadget for base display.

CONFIG = BaseConfig(use_prefix=False, use_subscript=False)
class justbytes_gui._config.Config(master, label_str)

Bases: object

Top level class for configuration gadgets.

CONFIG

A decorator indicating abstract properties.

Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract properties are overridden. The abstract properties can be called using any of the normal ‘super’ call mechanisms.

Usage:

class C:

__metaclass__ = ABCMeta @abstractproperty def my_abstract_property(self):

...

This defines a read-only property; you can also define a read-write abstract property using the ‘long’ form of property declaration:

class C:
__metaclass__ = ABCMeta def getx(self): ... def setx(self, value): ... x = abstractproperty(getx, setx)
get()

Get a dictionary of values associated with this gadget.

Returns:a dictionary of value
Return type:dict of str * object
set(config)

Set the members according to config.

Parameters:config (a justbytes configuration) – a configuration
widget

top level widget

class justbytes_gui._config.DigitsConfig(master, label_str)

Bases: justbytes_gui._config.Config

Configuration for property of digits.

CONFIG = DigitsConfig(separator=~, use_caps=False, use_letters=True)
class justbytes_gui._config.MiscDisplayConfig(master, label_str)

Bases: justbytes_gui._config.Config

Miscellaneous display options.

CONFIG = DisplayConfig(show_approx_str=True, base_config=BaseConfig(use_prefix=False, use_subscript=False), digits_config=DigitsConfig(separator=~, use_caps=False, use_letters=True), strip_config-StripConfig(strip=False, strip_exact=False, strip_whole=True))
class justbytes_gui._config.StripConfig(master, label_str)

Bases: justbytes_gui._config.Config

Configuration gadget for stripping options.

CONFIG = StripConfig(strip=False, strip_exact=False, strip_whole=True)
class justbytes_gui._config.ValueConfig(master, label_str)

Bases: justbytes_gui._config.Config

Configuration for choosing the value to display.

CONFIG = ValueConfig(base=10, binary_units=True, exact_value=False, max_places=2, min_value=1, rounding_method=_RoundingMethod, unit=None)
u = YB

Previous topic

justbytes_gui package

Next topic

justbytes_gui._errors module

This Page