Beispiel #1
0
    def __init__(self, master=None, value=None, options=[], name=None):
        self._options = []

        Variable.__init__(self, master, value, name)

        for option in options:
            self._options.append(StringVar(value=str(option)))
        self._set_initial(value)
Beispiel #2
0
    def __init__(self,
                 master=None,
                 value=None,
                 name=None,
                 max_val=0,
                 max_val_callback=None):
        self._max = max_val
        self._max_val_callback = max_val_callback

        Variable.__init__(self, master, value, name)
Beispiel #3
0
    def __init__(self, master=None, value=None, name=None):
        """Construct an Loc variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to 0)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        """
        Variable.__init__(self, master, value, name)