Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Viren070 committed Aug 13, 2023
1 parent d773684 commit 8a30557
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/downloader/downloader.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@

import customtkinter
import os
from pathlib import Path
import requests
from urllib.parse import urljoin
from tkinter import messagebox
from io import BytesIO
import re
from time import perf_counter
Expand Down
14 changes: 8 additions & 6 deletions src/gui/file_selector.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import os
import re
import webbrowser
from functools import partial
from threading import Thread
from tkinter import ttk, filedialog, messagebox
import customtkinter
from gui.progress_bar import ProgressBar
from downloader.downloader import PDF, FileDownloadError, AbortDownload
from utils.paths import is_path_exists_or_creatable
from time import perf_counter
from tkinter import filedialog, messagebox, ttk

import customtkinter
from PIL import Image
import re
from requests.exceptions import RequestException

from downloader.downloader import PDF, AbortDownload, FileDownloadError
from gui.progress_bar import ProgressBar
from utils.paths import is_path_exists_or_creatable


class FileSelector(customtkinter.CTkToplevel):
def __init__(self, master, url, pdfs, image_path):
Expand Down
14 changes: 9 additions & 5 deletions src/gui/url_selector.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import customtkinter
from urllib.parse import urlparse
import os
import webbrowser
from parser.pdf_parser import get_pdfs
from gui.file_selector import FileSelector
from tkinter import messagebox
from threading import Thread
import os
from tkinter import messagebox
from urllib.parse import urlparse

import customtkinter
from PIL import Image

from gui.file_selector import FileSelector


class URLSelector(customtkinter.CTk):
def __init__(self, image_path):
super().__init__()
Expand Down
8 changes: 4 additions & 4 deletions src/parser/pdf_parser.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import customtkinter
import requests
from bs4 import BeautifulSoup
from tkinter import messagebox
import re
from tkinter import messagebox
from urllib.parse import urljoin, urlparse

import requests
from bs4 import BeautifulSoup


def get_pdfs(url):
try:
Expand Down

0 comments on commit 8a30557

Please sign in to comment.