Flake8 plugin for Tkinter projects
Project description
flake8-tkinter
Flake8 plugin for Tkinter projects
Error codes
Error code | Description |
---|---|
TK001 | from tkinter import * used; consider using import tkinter as tk or simply import tkinter |
TK002 | from tkinter.ttk import * used; consider using from tkinter import ttk |
TK010 | import tkinter.ttk as ttk used; could be simplified to from tkinter import ttk |
TK020 | Inline call to funcname for 'command' argument at widget . Perhaps you meant command=funcname (without the parentheses)? |
TK030 | time.sleep(seconds) used, since it blocks the thread and the GUI will freeze. Use the .after(milliseconds) method instead, which isavailable on every Tkinter widget |
TK040 | tkinter.DUMB_CONSTANT used; use an appropriate built-in boolean instead |
Development
- Set up a virtual environment, activate, and install
flake8
andpytest
in it - Run
pip install -e .
to install flake8-tkinter in an editable format - Run
pytest
Credits
The idea of this project is by insolor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8_tkinter-0.1.2.tar.gz
(3.5 kB
view details)
File details
Details for the file flake8_tkinter-0.1.2.tar.gz
.
File metadata
- Download URL: flake8_tkinter-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e41f84a51f987285793f0a6151479009c01ae0d435153861f2387e72ce916d |
|
MD5 | ce77e6452330f8795df0d695f61dead9 |
|
BLAKE2b-256 | d33154fd0f0239fcdd1f4b300933f5451d4834f8c013749046bc499c2f37d23d |