CookiecutterTkinter offers multiple templates to build tkinter projects.
cookiecutter gh:AmolDerickSoans/cookiecutter-Tkinter
- ttktheme support
- Test Framework for project
- Built-in README file generator
- Built-in LICENSE file generator
Know More TtkThemes
This Project is looking for contributors , if you feel like making a template out of your tkinter code please follow these steps:
-
Fork this repository
-
Write well documented tkinter code that can be easily customisable
-
Add theme support inside your code.
# pip install ttkthemes from ttkthemes import ThemedStyle ##THEMES # "arc ","plastik" , "adapta" , "yaru" , "radiance" , "breeze" ,"no-theme" if '{{ cookiecutter.ttkTheme|lower}}' == 'no-theme': print("no theme file selected ,Set to default") else: style = ThemedStyle() style.theme_use('{{ cookiecutter.ttkTheme|lower}}')
-
Add code to
{{cookiecutter.project_slug}}
folder.+{{cookiecutter.project_slug}} | |- BasicForm | | | |- main.py | |- YourTemplate |- subDirs |-main.py
-
Add
YourTemplate
tocookiecutter.json
-
Add
YourTemplate
to the template list inhooks\post_gen_project.py