I have a function with a lot of parameters and sometimes one more
all what I find on the net the parameters are interated in a loop,
def create_combo(l_name, l_text, row,l_col, c_name, c_col, c_size, c_list, *args):
l_name=ttk.Label(root,text=l_text)
l_name.grid(row=row,column=l_col,padx=2,pady=2)
c_name=ttk.Combobox(root,values=c_list, width=c_size)
c_name.current(8)
c_name.grid(row=row,column=c_col,padx=2,pady=2)
sw_typ_list=("pushButton","revPushButton","nSwitch","uSwitch","eSwitch","pToggleSwitch")
create_combo("l_typT1", "Typ SW T1",1,0,"c_typT1",1,12,sw_typ_list,0)
the last parameter should be a default value for the combox, but sometimes I want omit it. I generate the combobox with a function as I have al lot of comboxes in my form. I know the names are bit krypto for peoble do not know the form is for, it is to create a 150 byte config file, where each byte has its own sence
Any hint ?
Regards
Rainer