Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Rename buttons, text fields, menus appropriately #3

Open
r00tdaemon opened this issue Oct 13, 2017 · 2 comments
Open

Rename buttons, text fields, menus appropriately #3

r00tdaemon opened this issue Oct 13, 2017 · 2 comments

Comments

@r00tdaemon
Copy link
Owner

Change names like button1, button2 in UI files

@ilimugur
Copy link

Just for clarification, do you mean renaming the names in XML-formatted files in UI directory, or renaming the names in *_ui.py files in njaXt directory??

@r00tdaemon
Copy link
Owner Author

Hi, thanks for showing interest in this project :)
To answer your question, both.
The .ui files in UI directory are the ones which were made using Qt Designer and *_ui.py files were generated using pyuic5 tool.
So you should just open the .ui files in Qt Designer. Rename the elements. Generate the *_ui.py file using pyuic5. Refactor existing classes in njaxt.py

If you have any difficulty in installing Qt Designer or code generation you can refer to this gist: https://gist.github.com/ujjwal96/1dcd57542bdaf3c9d1b0dd526ccd44ff

For anyone who wants to work on this issue - I'd suggest that you keep a record of changes like, old_name -> new_name. Then you can easily replace it in the njaxt.py file

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

No branches or pull requests

2 participants