Create a new frame for adding literal string values to a list.
Just add it to the normal Add object menu and make the command to insert into the listbox.
When a parameter of a class is annotated with List[Union[...]], the List part gets resolved nicely. However, the Union part is not processed further, resulting in abstract classes and polymorphism not to function properly.
When trying to edit objects without any annotations, the NewObjectFrameStruct raises an exception. After this, the window should be cleaned, but it is not.
Add the ability to register parameter groups inside classes.
When defining objects, certain parameters would be grouped together, forming a labeled frame.
The groups would be defined as a dictionary inside the class:
T=TypeVar('T')
B=TypeVar('B')
classMyClass(Generic[T, B]):
def__init__(self, a: T, b: B, c: int):
....
classSomeOtherClass:
def__init__(abcd: MyClass[float, float]):
...
window=wiz.ObjectEditWindow() # The object definition window / wizardcombo=wiz.ComboBoxObjects(root)
combo.pack(fill=tk.X, padx=5)
window.open_object_edit_frame(SomeOtherClass, combo) # Open the actual frame
The above would open an object edit window for class SomeOtherClass. The parameter abcd would be a class of type MyClass, which accepts parameter types a=float, b=float, c=int.
Basically generic types would get resolved to their actually names.
When exporting a template from the view-only view, it can only be imported in the view-only mode, although not in actual normal mode where it would be used.
Add an option to change the way defined objects are displayed when viewed inside the Listbox / Combobox.
E. g., If I have and object and_('text1', 'text2,' 'text3'), it would be displayed as: 'text1' and 'text2' and 'text3', provided the display override has been defined.