dialogs/ArrayTypeDialog.py
changeset 1833 2269739dd098
parent 1782 5b6ad7a7fd9d
child 1881 091005ec69c4
equal deleted inserted replaced
1832:0f1081928d65 1833:2269739dd098
    81         for datatype in datatypes:
    81         for datatype in datatypes:
    82             self.BaseType.Append(datatype)
    82             self.BaseType.Append(datatype)
    83 
    83 
    84         if isinstance(infos, TupleType) and infos[0] == "array":
    84         if isinstance(infos, TupleType) and infos[0] == "array":
    85             self.BaseType.SetStringSelection(infos[1])
    85             self.BaseType.SetStringSelection(infos[1])
    86             self.Dimensions.SetStrings(map(lambda x: "..".join(x), infos[2]))
    86             self.Dimensions.SetStrings(map("..".join, infos[2]))
    87         elif infos in datatypes:
    87         elif infos in datatypes:
    88             self.BaseType.SetStringSelection(infos)
    88             self.BaseType.SetStringSelection(infos)
    89 
    89 
    90         self.BaseType.SetFocus()
    90         self.BaseType.SetFocus()
    91         self.Fit()
    91         self.Fit()