forked from astianmuchui/pdf-audiobook-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.py
34 lines (27 loc) · 946 Bytes
/
client.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import tkinter
from tkinter import *
from tkinter import messagebox
import PyPDF2 as pyp
import pikepdf as pike
import pyttsx3 as pyt
import os
from os.path import isfile, join
from tkinter import filedialog
class AudConv():
def __init__(self, parent):
self.parent = parent
self.buildWidgets()
def browseFiles(self):
self.filename = filedialog.askopenfilename(initialdir="/", title="Select a File",
filetypes=(("Text files", "*.pdf*"), ("all files", "*.*")))
def buildWidgets(self):
self.voice_options = ["male", "female"]
self.init_lbl = Label(self.parent, text="Upload A file ", bg="#fff", font=(12), fg="#bf2206")
self.init_lbl.place(x=10, y=10)
if __name__ == "__main__":
app = Tk()
app.title("Audiobook Converter")
app.geometry("700x500")
app.configure(bg="#fff")
root = AudConv(app)
app.mainloop()