Giter Site home page Giter Site logo

ashhaddevlab / customtkinter-snippets Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 0.0 1.23 MB

A curated collection of Python customkinter snippets for building interactive GUI applications effortlessly.

License: BSD 3-Clause "New" or "Revised" License

customtkinter python snippets tkinter tkvideoplayer vscode vscode-extension github learn microsoftvisualstudio

customtkinter-snippets's Introduction

CustomTkinter Snippets

CustomTkinter Snippets Banner

CustomTkinter Snippets is a Visual Studio Code extension that provides a comprehensive set of snippets for efficiently working with CustomTkinter, a custom toolkit for Python GUI development. This extension enhances your development workflow by offering quick access to commonly used CustomTkinter components and features directly within the VS Code editor.

Features

  • Efficient Workflow: Speed up your development process with easy-to-use snippets for creating CustomTkinter widgets and implementing various functionalities.

  • Comprehensive Coverage: Access snippets for a wide range of CustomTkinter components, including buttons, checkboxes, combo boxes, entry fields, frames, labels, option menus, progress bars, radio buttons, scrollable frames, segmented buttons, sliders, switches, tab views, textboxes, scrollbars, windows, images, fonts, top-level windows, input dialogs, and more.

  • Customization Options: Utilize snippets to set appearance modes, themes, widget scaling, window scaling, and automatic DPI awareness according to your application requirements.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the square icon in the Sidebar or pressing Ctrl+Shift+X.
  3. Search for "CustomTkinter Snippets".
  4. Click on the Install button.

Usage

  1. Open a Python file in Visual Studio Code.
  2. Type the snippet prefix (e.g., ctkbutton for a button widget) and press Tab to insert the snippet code.
  3. Customize the snippet code as needed for your application.

Example

CustomTkinter Snippets Example GIF

Snippets

Widgets

Prefix Snippet Description
ctkbutton Inserts a snippet for button widget
ctkbutton.grid Inserts a snippet for placing a button widget using grid layout
ctkbutton.pack Inserts a snippet for placing a button widget using pack layout
ctkcheckbox Inserts a snippet for checkbox widget
ctkcheckbox.grid Inserts a snippet for placing a checkbox widget using grid layout
ctkcheckbox.pack Inserts a snippet for placing a checkbox widget using pack layout
ctkcombobox Inserts a snippet for combo box widget
ctkcombobox.grid Inserts a snippet for placing a combo box widget using grid layout
ctkcombobox.pack Inserts a snippet for placing a combo box widget using pack layout
ctkentry Inserts a snippet for entry field widget
ctkentry.grid Inserts a snippet for placing an entry field widget using grid layout
ctkentry.pack Inserts a snippet for placing an entry field widget using pack layout
ctkframe Inserts a snippet for frame widget
ctkframe.grid Inserts a snippet for placing a frame widget using grid layout
ctkframe.pack Inserts a snippet for placing a frame widget using pack layout
ctklabel Inserts a snippet for label widget
ctklabel.grid Inserts a snippet for placing a label widget using grid layout
ctklabel.pack Inserts a snippet for placing a label widget using pack layout
ctkoptionmenu Inserts a snippet for option menu widget
ctkoptionmenu.grid Inserts a snippet for placing an option menu widget using grid layout
ctkoptionmenu.pack Inserts a snippet for placing an option menu widget using pack layout
ctkprogressbar Inserts a snippet for progress bar widget
ctkprogressbar.grid Inserts a snippet for placing a progress bar widget using grid layout
ctkprogressbar.pack Inserts a snippet for placing a progress bar widget using pack layout
ctkradiobutton Inserts a snippet for radio button widget
ctkradiobutton.grid Inserts a snippet for placing a radio button widget using grid layout
ctkradiobutton.pack Inserts a snippet for placing a radio button widget using pack layout
ctkscrollableframe Inserts a snippet for scrollable frame widget
ctkscrollableframe.grid Inserts a snippet for placing a scrollable frame widget using grid layout
ctkscrollableframe.pack Inserts a snippet for placing a scrollable frame widget using pack layout
ctksegmentedbutton Inserts a snippet for segmented button widget
ctksegmentedbutton.grid Inserts a snippet for placing a segmented button widget using grid layout
ctksegmentedbutton.pack Inserts a snippet for placing a segmented button widget using pack layout
ctkslider Inserts a snippet for slider widget
ctkslider.grid Inserts a snippet for placing a slider widget using grid layout
ctkslider.pack Inserts a snippet for placing a slider widget using pack layout
ctkswitch Inserts a snippet for switch widget
ctkswitch.grid Inserts a snippet for placing a switch widget using grid layout
ctkswitch.pack Inserts a snippet for placing a switch widget using pack layout
ctktabview Inserts a snippet for tab view widget
ctktabview.grid Inserts a snippet for placing a tab view widget using grid layout
ctktabview.pack Inserts a snippet for placing a tab view widget using pack layout
ctktextbox Inserts a snippet for textbox widget
ctktextbox.grid Inserts a snippet for placing a textbox widget using grid layout
ctktextbox.pack Inserts a snippet for placing a textbox widget using pack layout
ctkscrollbar Inserts a snippet for scrollbar widget
ctkscrollbar.grid Inserts a snippet for placing a scrollbar widget using grid layout
ctkscrollbar.pack Inserts a snippet for placing a scrollbar widget using pack layout
ctkimage Inserts a snippet for importing images using Pillow
ctkfont Inserts a snippet for importing external font families
ctktoplevel Inserts a snippet to create secondary top-level CustomTkinter window
ctkinputdialog Inserts a snippet for input dialog widget
ctkinputdialog.grid Inserts a snippet for placing an input dialog widget using grid layout
ctkinputdialog.pack Inserts a snippet for placing an input dialog widget using pack layout
ctkvideo Inserts a snippet for embedding a video using CustomTkinter
ctkvideo.grid Inserts a snippet for placing a video widget using grid layout
ctkvideo.pack Inserts a snippet for placing a video widget using pack layout

Appearance and Theme

Prefix Snippet Description
appsys Inserts a snippet for copying System Appearance
appdark Inserts a snippet for setting Dark Appearance
applight Inserts a snippet for setting Light Appearance
themegreen Inserts a snippet for setting Green Theme
themeblue Inserts a snippet for setting Blue Theme
themedarkblue Inserts a snippet for setting Dark Blue Theme
theme Inserts a snippet for setting Custom Theme

Scaling and DPI

Prefix Snippet Description
scalingwidget Inserts a snippet for setting Widget Scaling
scalingwindow Inserts a snippet for setting Window Scaling
dpideactivate Inserts a snippet that deactivates DPI Awareness

Requirements

  • Visual Studio Code
  • Python
  • CustomTkinter library

CustomTkinter Library

CustomTkinter Snippets is built to complement the CustomTkinter library for Python GUI development. This library is maintained by Tom Schimansky, a prolific developer in the Python community.

Feel free to explore the CustomTkinter repository for more information, updates, and contributions.

Feedback

For any issues, suggestions, or feedback, please open an issue on GitHub.

License

This extension is licensed under the BSD-3 License.

customtkinter-snippets's People

Contributors

ashhaddevlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

customtkinter-snippets's Issues

Suggestions for Improved and Newer Features

Overview

As the sole developer of this project, I'm dedicated to continuously improving and refining its features to provide a better user experience. Your input is highly valued in this process. Please share any suggestions you have for new features or improvements.

How to Contribute

  1. Ideas: Feel free to propose new features or enhancements that you believe would benefit the project.
  2. Feedback: Share any thoughts or opinions you have on the current state of the project and how it can be improved.
  3. Feature Requests: If there's a specific feature you'd like to see implemented, please describe it in detail.

Finding Ways to Increase Visibility

Overview

In addition to feature improvements, we're also exploring strategies to make the project more popular across various platforms. Your insights and suggestions on this matter are highly appreciated.

Possible Areas to Explore

  • Social Media Engagement
  • Community Outreach Programs
  • Collaborations with Influencers or Experts

Guidelines

  • Ensure your suggestions align with the project's goals and scope.
  • Be specific and provide clear explanations for your ideas.
  • Consider the feasibility and impact of your suggestions on the project's visibility.

Looking Forward

Your contributions play a vital role in shaping the future of this project. Thank you for taking the time to share your insights and ideas.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.