I use VS Code as my IDE and I have Pylance extension to help debugging the code.
Pylance keeps underlining command=self.get_inputs
as error even thought the code runs just fine. Here is an example:
self.button1 = ctk.CTkButton(self, text="Calculate", command=self.get_inputs) self.button1.grid(row=5, column=0, pady=10, padx=10, sticky="W")
def get_inputs(self):
H1 = self.entry2.get()
d1 = self.entry3.get()
T = self.entry4.get()
alpha1 = self.entry5.get()
s = self.entry6.get()
z = self.entry7.get()
d2 = self.entry8.get()
return H1, d1, T, alpha1, s, z, d2
Here is the full error: full error
I don't understand why this is happening. what can I do avoid getting this?
I don't know how I can avoid getting this type of error