Тёмный
Clive Bostock
Clive Bostock
Clive Bostock
Подписаться
Комментарии
@alessandromatiasgonzalez6014
@alessandromatiasgonzalez6014 3 месяца назад
How i install this with pycharm?
@laurenceduma766
@laurenceduma766 6 месяцев назад
PS C:\Users\Admin> python C:\Users\Admin\theme_builder_setup.py -i C:\Users\Admin -p ctk_theme_builder-3.0.2.zip Checking Python interpreter version... Python version, 3.9.13, is a supported version. Starting CTk Theme Builder deployment. Operating System: Windows 10.0.19045 10.0.19045 Installation base location: C:\Users\Admin Updating existing application at: C:\Users\Admin\ctk_theme_builder ======================== KEY LOCATION MAPPINGS ========================== Package Location: C:\Users\Admin\ctk_theme_builder-3.0.2.zip App Home = C:\Users\Admin\ctk_theme_builder Assets Location = C:\Users\Admin\ctk_theme_builder\assets User Theme Location = C:\Users\Admin\ctk_theme_builder\user_themes Log Location = C:\Users\Admin\ctk_theme_builder\log ========================================================================= Checking for repository: C:\Users\Admin\ctk_theme_builder\assets\data\ctk_theme_builder.db Repository located - pre-existing installation. Unpacking package: C:\Users\Admin\ctk_theme_builder-3.0.2.zip to: C:\Users\Admin [unpack_package] WARNING: Artefact file, ctk_theme_builder-3.0.2.zip, appears to be an invalid ZIP file. Traceback (most recent call last): File "C:\Users\Admin\theme_builder_setup.py", line 613, in <module> unpack_package(zip_pathname=package_path, install_location=install_location) File "C:\Users\Admin\theme_builder_setup.py", line 461, in unpack_package with ZipFile(zip_pathname, 'r') as archive: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\zipfile.py", line 1248, in __init__ self.fp = io.open(file, filemode) FileNotFoundError: [Errno 2] No such file or directory: 'ctk_theme_builder-3.0.2.zip'
@MrAvalon20
@MrAvalon20 6 месяцев назад
Hi Laurence. You need to put the full pathname to the zip file. This will be improved in next release.
@4e.virtual.design332
@4e.virtual.design332 6 месяцев назад
​@@MrAvalon20 I have the same issue. Tried moving files to differet locations. Is there any other way to install it?
@MrAvalon20
@MrAvalon20 6 месяцев назад
@@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.
@AnassRennoun.
@AnassRennoun. 7 месяцев назад
i haveo problem installing in mac FileNotFoundError: [Errno 2] No such file or directory: 'ctk_theme_builder-develop.zip'
@MrAvalon20
@MrAvalon20 6 месяцев назад
Hi. Please ensure that you use the full pathname(s). Failing that, can you please raise an issue at github.com/avalon60/ctk_theme_builder/issues
@MrAvalon20
@MrAvalon20 6 месяцев назад
Thanks for opening an Issue on Github. I have now responded.
@mawirecon
@mawirecon 8 месяцев назад
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
@MrAvalon20
@MrAvalon20 7 месяцев назад
I suspect you have a Windows file association thing going on. Can you try adding .bat to the end of the command. Ie .\ctk_theme_builder.bat
@DT-hb3zu
@DT-hb3zu 8 месяцев назад
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.)
@alananalyst7795
@alananalyst7795 8 месяцев назад
hello, where can I obtain the zip package? I looked github project page but I couldn't find it?
@MrAvalon20
@MrAvalon20 8 месяцев назад
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
@alananalyst7795
@alananalyst7795 8 месяцев назад
@on20 thanks :) everything is working now, it's awesome too, I love it!
@technicallycorrect838
@technicallycorrect838 Год назад
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.
@MrAvalon20
@MrAvalon20 Год назад
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.
@MrAvalon20
@MrAvalon20 Год назад
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
@MrAvalon20
@MrAvalon20 Год назад
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
@MrAvalon20
@MrAvalon20 Год назад
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
@ServiceSaga
@ServiceSaga 11 месяцев назад
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
@MrAvalon20
@MrAvalon20 11 месяцев назад
@@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.
@MrAvalon20
@MrAvalon20 Год назад
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
@MrAvalon20
@MrAvalon20 Год назад
CustomTkinter 2.3.0 is now available at github.com/avalon60/ctk_theme_builder
@oleksii.buniak
@oleksii.buniak Год назад
Awesome job 👍
@MrAvalon20
@MrAvalon20 Год назад
Thanks Oleksii 👍
@Lusanri
@Lusanri Год назад
Hello, could you make a video teaching how to proceed to Windows users? I folled all the steps to make it work but with no success. Thank you
@MrAvalon20
@MrAvalon20 Год назад
Sure Lucas. I have just uploaded a Windows install video. Thanks for watching.