Exemplo n.º 1
0
    def __init__(self, parent, text, relx, rely):
        self.parent, self.text, self.relx, self.rely = parent, text, relx, rely

        Scale.__init__(self, self.parent)

        self.l_val = StringVar()
        self.defaults()
Exemplo n.º 2
0
 def __init__(self, dataType, connection: socket, master=None, **kwargs):
     # default constructor of tkinter slider
     Scale.__init__(self, master, **kwargs)
     self.dataType = dataType
     self.bind("<ButtonRelease-1>", self.updateValue)
     self.connection = connection