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.1.tar.gz
(3.6 kB
view details)
File details
Details for the file flake8_tkinter-0.1.1.tar.gz
.
File metadata
- Download URL: flake8_tkinter-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc43581c1451de78d43402bcfe67deafd99bfcabe32807fb96cc844bd213b1a |
|
MD5 | 9bb2e445be812c640e9b0aaff9d25885 |
|
BLAKE2b-256 | 570eaf3a62d867efbd9a2a579e37d2c2acd909430430261d70ad4eeaadac0c10 |