Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable code generation Tab. #285

Open
jamesbrownnz opened this issue Jan 31, 2025 · 3 comments
Open

Enable code generation Tab. #285

jamesbrownnz opened this issue Jan 31, 2025 · 3 comments

Comments

@jamesbrownnz
Copy link

Is there a way to reenable the code generation tab?
We have a large project-based setup with a lot of dialogues in a single UI file.
The new method makes it difficult to quickly select and generate code for the different dialogues; now the settings have to be updated and a file is generated.
Before the dialogue was selected, the code was generated, and then the generated code was copied into a file with a bespoke wrapper.

If there's any way to bring back that code tab, even if it's just a manual code change to the pip module to enable it would be greatly appreciated.

Using:
pygubu - 0.36.1
pygubu-designer - 0.40.1

@alejandroautalan
Copy link
Owner

Hello James, thanks for trying pygubu.

Sorry for the inconvenience. You can have the code tab back, if you install an older version with the following command:

pip install pygubu==0.33 pygubu-designer==0.38

Regards
Alejandro A.

@jamesbrownnz
Copy link
Author

Hi Alejandro,

No worries.
The new version has the new themes pbt_, these are nice, are they based on any of the original themes from the older version? Like clam or something?
As rolling back removes my access to them.

Image

@alejandroautalan
Copy link
Owner

Yes, the pbs_* themes are in the newer releases.

How about running the designer in a virtual environment, and your project with the latest pygubu?

You will lost dark themes in designer but your project will run with them.

In your default python:

pip uninstall pygubu pygubu-designer

Install the latest version

pip install pygubu

Install a helper for managing virtual envs, like fades:

pip install fades

Now run older designer with:

fades -d pygubu==0.33 pygubu-designer==0.38 -x pygubu-designer

Let me know if this helps in your particular case.

Regards
Alejandro A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants