Skip to content

AmolDerickSoans/cookiecutter-Tkinter

Repository files navigation

Python Contributors Stargazers Forks Issues License

Group 7284

Content

About

CookiecutterTkinter offers multiple templates to build tkinter projects.

cookiecutter gh:AmolDerickSoans/cookiecutter-Tkinter

Features

  • ttktheme support
  • Test Framework for project
  • Built-in README file generator
  • Built-in LICENSE file generator

TEMPLATES AVAILABLE

Basic single page form with multiple widgets

basic_form

Multipage form with widgets , notebooks.

newww

Single page with spalshscreen support

Calculator Demo

Text Editor Demo

note

File Search Demo

tempsnip

ttk Themes

Group 7287

Know More TtkThemes

How to Use

Contribute

This Project is looking for contributors , if you feel like making a template out of your tkinter code please follow these steps:

  1. Fork this repository

  2. Write well documented tkinter code that can be easily customisable

  3. 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}}')
  4. Add code to {{cookiecutter.project_slug}} folder.

       +{{cookiecutter.project_slug}}
       |
       |- BasicForm
       |   |
       |   |- main.py
       |
       |- YourTemplate
           |- subDirs
           |-main.py
  5. Add YourTemplate to cookiecutter.json

  6. Add YourTemplate to the template list in hooks\post_gen_project.py

About

cookie-cutter templates to build different types of tkinter applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages