def SelectedCarFunction(event=None):
a = Var2.get()
b = Var3.get()
c = Var4.get()
if Model == "a" and Colour == "b" and Wheels == "c":
VarSC = (Three_Series[0])
print(VarSC)
当我从函数中打印VarSC时,它给出了我想要的值
VarSC = StringVar()
print(VarSC)
但是当我在函数外部打印它时,在我的代码中,它会打印" PY_VAR9"
答案 0 :(得分:1)
您应该从函数返回VarSC的值并将其打印到外面。
android:button="@null"