Code Script in 0.39+? #246
-
I've been looking for a GUI for tkinter and after trying v 0.39.1, I went looking for alternatives after seeing it can only save the code on disk because I wanted to have code generated that I could copy-paste into my project since I'm almost certainly going to tinker with it as I code since I'm not a big planner. So, I was wondering if it was only removed temporarily because of the new GUI redesign(would be nice to have the possibility to have the components horizontally too, the search is great but I like the component layout of the older version better since it can be more compact) or if the plan was to remove it for good, which would be really sad, and why was that decision taken if that is indeed the case. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @SamKook, thanks for trying pygubu. The code tab was removed because the designer now can generate from 2 to 3 files depending on the project template. The components bar was changed for two reasons.
This changes are not temporary. I will try to update the docs. Regards. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. Having to open a file every time is quite the hassle for the way I want to work since it'll be frequent. In a perfect world I wanted something that could switch seamlessly between code and design view with the ability to edit either and have it reflected on the other, but that doesn't seem to exist for tkinter. At least having the code generation in the same app was closer to what I wished for. As for the component change, it's basically because I have a very large screen(34" 21:9 + 29" 21x9 above) that I want a more compact UI, lol. Anyway, after messing around with it for an hour or so yesterday, I basically came to the conclusion that I'm not really saving time using the GUI but it helped me understand better how laying stuff out works so I'm very grateful for that at least. One big issue I ran into when designing something was the inability to specify only one side for the padding. In code, you can specify (5,0) for pady if you only want 5 padding on top and nothing on the bottom which is essential for me since I like a more compact UI so I'd have to modify the code quite a bit after generating it and wouldn't be able to preview what it actually looks like during the design phase. Another one was that there doesn't seem to be a cascade component for the menu so I'm not sure how we're even supposed to create a menu, but that might very well be that I missed something(haven't used tkinter a lot so not too familiar with it) and I haven't really looked that much into how since it wasn't making much sense for me to use it at that point anyway. |
Beta Was this translation helpful? Give feedback.
Hello @SamKook, thanks for trying pygubu.
Sorry for the inconveniences.
The code tab was removed because the designer now can generate from 2 to 3 files depending on the project template.
On the project properties you can configure where those files will be generated. In your case, you can configure a temporary folder and copy the required code from there.
The components bar was changed for two reasons.