@@4e.virtual.design332 If you are talking of the "file not found" issue, then you have to specify full pathnames with the -I option and with the -p option. Don't use relative pathnames. This restriction will be removed in 3.1. Example: python theme_builder_setup.py -p c:\Users\clive\Downloads\ctk_theme_builder-3.0.2.zip -i c:\apps Ensure that the directory specified with the -i option pre-exists.
When I run the .\ctk_theme_builder command after following the setup steps, the program opens up the .py file in VS Code rather than actually launching the program. Any ideas? running Python 3.11.8 and VS Code 1.87 Windows 11 ctk_theme_builder-3.0.1
This works on python 3.12 (I do have setuptools installed, so that could be worth looking into, maybe supporting 3.12) A few things of note for future folks coming in. You are instructed to create two directories, temp, and app. With the setup command, only the location of the theme_builder_setup.py can be relative. ex: python .\temp\theme_builder_setup.py -i C:\Users\dt\Desktop\apps -p C:\Users\dt\Desktop\temp\ctk_theme_builder-3.0.1.zip This will install it correctly. If not, you will get file permission errors, and it will throw you for a loop. GL! it's a bit rough, but you got it. Follow his instruction, and you will be just fine. - - - Gripe area. :( When you're ready to run the program -- If you have .py files associated to pycharm, like I do, You won't be able to run the ctk_theme_builder.bat script, as it will only open the file in pycharm, as opposed to running the script. It's a very short script, therefore, to work around it you will need to modify it for your own uses. As I'm writing this, I'm looking through, and when selecting a theme, it tries to open the program again. Most likely due to calling the bat file. *TIMEOUT: Waited too long for preview listener! Ensure that only one instance of CTk Theme Builder is running on port 5051, and that no other process is using that port.* Bottom line, it's a program with a good future, just too convoluted at present. Someone could remake this, with native python, and make it run just as fast, with just as much functionality, without the convoluted install, and webpage display. I really hope to see this come to life better in the future. A simple entry point, main.py would do well. I've made many many programs with CTk, and they're very responsive, very clean UI's, that could be done without over complicating it. Just as in python, just because something *can* be done, doesn't mean it *should* be done. - Rant over- - - - AGAIN! I want to thank you for putting this together. I'm sure that it works 90% of the time. It's just too convoluted to be changing json files, and presenting them on a default menu. Thank you again. I hope, I really do hope to see this again, and get it to work for me :) g'day m8. Much love to you. (ps, your code is beautifully written.)
Hello Alan. Please check out this link: github.com/avalon60/ctk_theme_builder/releases/tag/v3.0.1 The docs are here: github.com/avalon60/ctk_theme_builder/wiki
Hi Clive, Is it possible to add custom widgets derived from base widgets and assign colors to them? I know we can override colors in the custom class itself but I was wondering if we could include the custom class entries in the theme .json. Not sure if CTk supports that, couldn't find anything specific in the docs.
Hi. This is not possible. In fact the composite widgets introduced by Tom Schimansky don't tend to have completely independent properties. Any DIY composite widgets would be subject to the properties of their component classes. There was an enhancement request (see issue #1857 on the CustomTkinter issues tab), not long ago, to make the theming more flexible, and this appeared to be acknowledged by Tom Schimansky, however he's a bit busy of late, due to his study commitments at University. The suggested enhancement was more about being able to define style variations on existing CustomTkinter classes, rather than custom classes. If implemented, this might offer some degree of extra flexibility.
Also See... CTk Theme Builder: Developing CustomTkinter Themes ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-L2rygqPjY8.html Installing CTk Theme Builder for CustomTkinter on Windows ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xlp5Nkmgp7E.html Installing CTk Theme Builder on Linux ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BtLVCHtfz3Q.html
Installation Steps: * Check to see if you have Python installed; * Download Python preferably Python 3.10 or 3.11; * Install Python - ensure you add to PATH; * Download CTk Theme Builder package file (ZIP) * Place the ZIP file somewhere near where you intend to install; * Extract the theme_builder_setup.py from the ZIP file; * Run the installer: `python -i <installation_location> -p <ctk_theme_builder_package>` Also See... Installing CTk Theme Builder for CustomTkinter on Windows ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xlp5Nkmgp7E.html An Introduction to CTk Theme Builder for CustomTkinter: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2eUFO_GNnmQ.html CTk Theme Builder: Developing CustomTkinter Themes ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-L2rygqPjY8k.html
Installation Steps: * Check to see if you have Python installed; * Download Python preferably Python 3.10 or 3.11; * Install Python - ensure you add to PATH; * Download CTk Theme Builder package file (ZIP) * Place the ZIP file somewhere near where you intend to install; * Extract the theme_builder_setup.py from the ZIP file; * Run the installer: `python -i <installation_location> -p <ctk_theme_builder_package>` Also See... Installing CTk Theme Builder on Linux ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BtLVCHtfz3Q.html An Introduction to CTk Theme Builder for CustomTkinter: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2eUFO_GNnmQ.html CTk Theme Builder: Developing CustomTkinter Themes ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-L2rygqPjY8k.html
Why when i start .\ctk_theme_builder on Windows Log iş [Main ..date..] update#setetade idle [Main ..date..] update#isLastVersiom(): failed to check for upfates [Main ..date..] Error: net:: ERR_TIMED_OUT Ext. And not showing the app
@@ServiceSaga please log an issue on GitHub. Also make sure you have version 2.5.1. From 2.5 onwards, logging is implemented, which helps to diagnose issues. You wil need to install from scratch, and provide the install log. If you raise an issue, I can more easily guide you. Thanks.
Also See... Installing CTk Theme Builder for CustomTkinter on Windows ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xlp5Nkmgp7E.html Installing CTk Theme Builder on Linux ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BtLVCHtfz3Q.html An Introduction to CTk Theme Builder for CustomTkinter: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2eUFO_GNnmQ.html