-
Is it possible to save the UI as a separate file? The issue is that if we have a fairly complex UI, the UI code is so long. It would be great if we could separate the UI from the Logic. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
One way I have found to do this is to create class with all the form layout, and implement get and set methods to load the form and retrieve the data. Something like this:
Then you can use it like any other object, using, for example: my_ui : MY_UI = MY_UI() The mainloop would have to be in another window. If the above code was saved in
|
Beta Was this translation helpful? Give feedback.
-
This is not something that should be done by a style library like |
Beta Was this translation helpful? Give feedback.
One way I have found to do this is to create class with all the form layout, and implement get and set methods to load the form and retrieve the data. Something like this: