Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit 2adc804

Browse files
committed
Lint fixes
1 parent 0916da6 commit 2adc804

File tree

3 files changed

+50
-4
lines changed

3 files changed

+50
-4
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ flake8 = "*"
88

99
[packages]
1010
asynctk = "==0.0.8a0"
11+
flake8 = "*"
1112

1213
[requires]
1314
python_version = "3.7"

Pipfile.lock

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project/__main__.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,22 @@ async def cb():
2525
manager.file = dir / i
2626
await manager.destroy()
2727

28-
tk.AsyncButton(foldermap, text=f"{i} [FILE]", callback=cb).pack()
28+
tk.AsyncButton(
29+
foldermap,
30+
text=f"{i} [FILE]",
31+
callback=cb
32+
).pack()
2933
elif (dir / i).is_dir():
3034

3135
async def cb():
3236
manager.dir = dir / i
3337
populate_folder(manager.dir)
3438

35-
tk.AsyncButton(foldermap, text=f"{i} [FOLDER]", callback=cb).pack()
39+
tk.AsyncButton(
40+
foldermap,
41+
text=f"{i} [FOLDER]",
42+
callback=cb
43+
).pack()
3644

3745
def boxcallback(*i):
3846
change_dir(dirbox.get())
@@ -67,7 +75,8 @@ async def save():
6775

6876
root.dropdown.add_command(label="Do nothing", command=lambda: None)
6977
root.dropdown.add_command(
70-
label="Save processor time", command=lambda: asyncio.ensure_future(root.destroy())
78+
label="Save processor time",
79+
command=lambda: asyncio.ensure_future(root.destroy())
7180
)
7281

7382
root.menu.add_cascade(label="Unhelpful menu", menu=root.dropdown)

0 commit comments

Comments
 (0)