diff -r c02818d7e29f -r 7e61baa047f0 editors/DataTypeEditor.py --- a/editors/DataTypeEditor.py Mon Aug 14 22:30:41 2017 +0300 +++ b/editors/DataTypeEditor.py Mon Aug 14 23:27:15 2017 +0300 @@ -42,13 +42,16 @@ DIMENSION_MODEL = re.compile("([0-9]+)\.\.([0-9]+)$") + def AppendMenu(parent, help, id, kind, text): parent.Append(help=help, id=id, kind=kind, text=text) + def GetElementsTableColnames(): _ = lambda x : x return ["#", _("Name"), _("Type"), _("Initial Value")] + def GetDatatypeTypes(): _ = lambda x : x return [_("Directly"), _("Subrange"), _("Enumerated"), _("Array"), _("Structure")] @@ -58,6 +61,7 @@ # Structure Elements Table #------------------------------------------------------------------------------- + class ElementsTable(CustomTable): """ @@ -137,6 +141,7 @@ # Datatype Editor class #------------------------------------------------------------------------------- + class DataTypeEditor(EditorPanel): def _init_Editor(self, parent):