diff --git a/src/classes/App.py b/src/classes/App.py index 5054d2d..83b5112 100644 --- a/src/classes/App.py +++ b/src/classes/App.py @@ -1,7 +1,8 @@ import tkinter as tk from tkinter import ttk -import layouts.QWERTY as QWERTY +import layouts.Opti as QWERTY + class App(tk.Tk): @@ -26,4 +27,4 @@ def typeBox(self): entry.grid(row=2, columnspan= 100, ipadx= 999, ipady=5) def keyboard(self): - QWERTY.QWERTY() \ No newline at end of file + QWERTY.Opti() \ No newline at end of file diff --git a/src/classes/__pycache__/App.cpython-39.pyc b/src/classes/__pycache__/App.cpython-39.pyc deleted file mode 100644 index 5ae2a87..0000000 Binary files a/src/classes/__pycache__/App.cpython-39.pyc and /dev/null differ diff --git a/src/layouts/Chubon.py b/src/layouts/Chubon.py new file mode 100644 index 0000000..31bcf76 --- /dev/null +++ b/src/layouts/Chubon.py @@ -0,0 +1,105 @@ +import tkinter as tk +from tkinter import ttk + +hold = " " + +def press(char): + global hold + hold += char + +class Chubon(tk.Tk): + + def __init__(self): + self.layout() + + + def layout(self): + V = ttk.Button(text = 'V' , width = 6, command = lambda : press('V')) + V.grid(row = 3 , column = 8, ipadx = 6 , ipady = 10) + + U = ttk.Button(text = 'U' , width = 6, command = lambda : press('U')) + U.grid(row = 3 , column = 9, ipadx = 6 , ipady = 10) + + P = ttk.Button(text = 'P' , width = 6, command = lambda : press('P')) + P.grid(row = 3 , column = 10, ipadx = 6 , ipady = 10) + + + # SECOND ROW + Q = ttk.Button(text = 'Q' , width = 6, command = lambda : press('Q')) + Q.grid(row = 4 , column = 5, ipadx = 6 , ipady = 10) + + M = ttk.Button(text = 'M' , width = 6, command = lambda : press('M')) + M.grid(row = 4 , column = 6, ipadx = 6 , ipady = 10) + + I = ttk.Button(text = 'I' , width = 6, command = lambda : press('I')) + I.grid(row = 4 , column = 7, ipadx = 6 , ipady = 10) + + T = ttk.Button(text = 'T' , width = 6, command = lambda : press('T')) + T.grid(row = 4 , column = 8, ipadx = 6 , ipady = 10) + + S = ttk.Button(text = 'S' , width = 6, command = lambda : press('S')) + S.grid(row = 4 , column = 9, ipadx = 6 , ipady = 10) + + C = ttk.Button(text = 'C' , width = 6, command = lambda : press('C')) + C.grid(row = 4 , column = 10, ipadx = 6 , ipady = 10) + + K = ttk.Button(text = 'K' , width = 6, command = lambda : press('K')) + K.grid(row = 4 , column = 11, ipadx = 6 , ipady = 10) + + Z = ttk.Button(text = 'Z' , width = 6, command = lambda : press('Z')) + Z.grid(row = 4 , column = 12, ipadx = 6 , ipady = 10) + + + # THIRD ROW + J = ttk.Button(text = 'J' , width = 6, command = lambda : press('J')) + J.grid(row = 5 , column = 4, ipadx = 6 , ipady = 10) + + G = ttk.Button(text = 'G' , width = 6, command = lambda : press('G')) + G.grid(row = 5 , column = 5, ipadx = 6 , ipady = 10) + + N = ttk.Button(text = 'N' , width = 6, command = lambda : press('N')) + N.grid(row = 5 , column = 6, ipadx = 6 , ipady = 10) + + R = ttk.Button(text = 'R' , width = 6, command = lambda : press('R')) + R.grid(row = 5 , column = 7, ipadx = 6 , ipady = 10) + + E = ttk.Button(text = 'E' , width = 6, command = lambda : press('E')) + E.grid(row = 5 , column = 8, ipadx = 6 , ipady = 10) + + H = ttk.Button(text = 'H' , width = 6, command = lambda : press('H')) + H.grid(row = 5 , column = 9, ipadx = 6 , ipady = 10) + + B = ttk.Button( text= 'B' , width = 6 , command = lambda : press('B')) + B.grid(row = 5 , column = 10 , ipadx = 6 ,ipady = 10) + + Y = ttk.Button(text = 'Y' , width = 6, command = lambda : press('Y')) + Y.grid(row = 5 , column = 11, ipadx = 6 , ipady = 10) + + X = ttk.Button(text = 'X' , width = 6, command = lambda : press('X')) + X.grid(row = 5 , column = 12, ipadx = 6 , ipady = 10) + + + # FOURTH ROW + F = ttk.Button(text = 'F' , width = 6, command = lambda : press('F')) + F.grid(row = 6 , column = 5, ipadx = 6 , ipady = 10) + + O = ttk.Button(text = 'O' , width = 6, command = lambda : press('O')) + O.grid(row = 6 , column = 6, ipadx = 6 , ipady = 10) + + A = ttk.Button(text = 'A' , width = 6, command = lambda : press('A')) + A.grid(row = 6 , column = 7, ipadx = 6 , ipady = 10) + + D = ttk.Button(text = 'D' , width = 6, command = lambda : press('D')) + D.grid(row = 6 , column = 8, ipadx = 6 , ipady = 10) + + L = ttk.Button(text = 'L' , width = 6, command = lambda : press('L')) + L.grid(row = 6 , column = 9, ipadx = 6 , ipady = 10) + + W = ttk.Button(text = 'W' , width = 6, command = lambda : press('W')) + W.grid(row = 6 , column = 10, ipadx = 6 , ipady = 10) + + period = ttk.Button(text = '.' , width = 6, command = lambda : press('.')) + period.grid(row = 6 , column = 11, ipadx = 6 , ipady = 10) + + comma = ttk.Button(text = ',' , width = 6, command = lambda : press(',')) + comma.grid(row = 6 , column = 12, ipadx = 6 , ipady = 10) \ No newline at end of file diff --git a/src/layouts/Dvorak.py b/src/layouts/Dvorak.py new file mode 100644 index 0000000..8ff2443 --- /dev/null +++ b/src/layouts/Dvorak.py @@ -0,0 +1,109 @@ +import tkinter as tk +from tkinter import ttk + +hold = " " + +def press(char): + global hold + hold += char + +class Dvorak(tk.Tk): + + def __init__(self): + self.layout() + + + def layout(self): + quote = ttk.Button(text = '\'' , width = 6, command = lambda : press('\'')) + quote.grid(row = 3 , column = 5, ipadx = 6 , ipady = 10) + + comma = ttk.Button(text = ',' , width = 6, command = lambda : press(',')) + comma.grid(row = 3 , column = 6, ipadx = 6 , ipady = 10) + + period = ttk.Button(text = '.' , width = 6, command = lambda : press('.')) + period.grid(row = 3 , column = 7, ipadx = 6 , ipady = 10) + + P = ttk.Button(text = 'P' , width = 6, command = lambda : press('P')) + P.grid(row = 3 , column = 8, ipadx = 6 , ipady = 10) + + Y = ttk.Button(text = 'Y' , width = 6, command = lambda : press('Y')) + Y.grid(row = 3 , column = 9, ipadx = 6 , ipady = 10) + + F = ttk.Button(text = 'F' , width = 6, command = lambda : press('F')) + F.grid(row = 3 , column = 10, ipadx = 6 , ipady = 10) + + G = ttk.Button(text = 'G' , width = 6, command = lambda : press('G')) + G.grid(row = 3 , column = 11, ipadx = 6 , ipady = 10) + + C = ttk.Button(text = 'C' , width = 6, command = lambda : press('C')) + C.grid(row = 3 , column = 12, ipadx = 6 , ipady = 10) + + R = ttk.Button(text = 'R' , width = 6, command = lambda : press('R')) + R.grid(row = 3 , column = 13, ipadx = 6 , ipady = 10) + + L = ttk.Button(text = 'L' , width = 6, command = lambda : press('L')) + L.grid(row = 3 , column = 14, ipadx = 6 , ipady = 10) + + + # SECOND ROW + A = ttk.Button(text = 'A' , width = 6, command = lambda : press('A')) + A.grid(row = 4 , column = 5, ipadx = 6 , ipady = 10) + + O = ttk.Button(text = 'O' , width = 6, command = lambda : press('O')) + O.grid(row = 4 , column = 6, ipadx = 6 , ipady = 10) + + E = ttk.Button(text = 'E' , width = 6, command = lambda : press('E')) + E.grid(row = 4 , column = 7, ipadx = 6 , ipady = 10) + + U = ttk.Button(text = 'U' , width = 6, command = lambda : press('U')) + U.grid(row = 4 , column = 8, ipadx = 6 , ipady = 10) + + I = ttk.Button(text = 'I' , width = 6, command = lambda : press('I')) + I.grid(row = 4 , column = 9, ipadx = 6 , ipady = 10) + + D = ttk.Button(text = 'D' , width = 6, command = lambda : press('D')) + D.grid(row = 4 , column = 10, ipadx = 6 , ipady = 10) + + H = ttk.Button(text = 'H' , width = 6, command = lambda : press('H')) + H.grid(row = 4 , column = 11, ipadx = 6 , ipady = 10) + + T = ttk.Button(text = 'T' , width = 6, command = lambda : press('T')) + T.grid(row = 4 , column = 12, ipadx = 6 , ipady = 10) + + N = ttk.Button(text = 'N' , width = 6, command = lambda : press('N')) + N.grid(row = 4 , column = 13, ipadx = 6 , ipady = 10) + + S = ttk.Button(text = 'S' , width = 6, command = lambda : press('S')) + S.grid(row = 4 , column = 14, ipadx = 6 , ipady = 10) + + + # THIRD ROW + semi = ttk.Button(text = ';' , width = 6, command = lambda : press(';')) + semi.grid(row = 5 , column = 5, ipadx = 6 , ipady = 10) + + Q = ttk.Button(text = 'Q' , width = 6, command = lambda : press('Q')) + Q.grid(row = 5 , column = 6, ipadx = 6 , ipady = 10) + + J = ttk.Button(text = 'J' , width = 6, command = lambda : press('J')) + J.grid(row = 5 , column = 7, ipadx = 6 , ipady = 10) + + K = ttk.Button(text = 'K' , width = 6, command = lambda : press('K')) + K.grid(row = 5 , column = 8, ipadx = 6 , ipady = 10) + + X = ttk.Button(text = 'X' , width = 6, command = lambda : press('X')) + X.grid(row = 5 , column = 9, ipadx = 6 , ipady = 10) + + B = ttk.Button( text= 'B' , width = 6 , command = lambda : press('B')) + B.grid(row = 5 , column = 10 , ipadx = 6 ,ipady = 10) + + M = ttk.Button(text = 'M' , width = 6, command = lambda : press('M')) + M.grid(row = 5 , column = 11, ipadx = 6 , ipady = 10) + + W = ttk.Button(text = 'W' , width = 6, command = lambda : press('W')) + W.grid(row = 5 , column = 12, ipadx = 6 , ipady = 10) + + V = ttk.Button(text = 'V' , width = 6, command = lambda : press('V')) + V.grid(row = 5 , column = 13, ipadx = 6 , ipady = 10) + + Z = ttk.Button(text = 'Z' , width = 6, command = lambda : press('Z')) + Z.grid(row = 5 , column = 14, ipadx = 6 , ipady = 10) \ No newline at end of file diff --git a/src/layouts/Opti.py b/src/layouts/Opti.py new file mode 100644 index 0000000..42b1f03 --- /dev/null +++ b/src/layouts/Opti.py @@ -0,0 +1,101 @@ +import tkinter as tk +from tkinter import ttk + +hold = " " + +def press(char): + global hold + hold += char + +class Opti(tk.Tk): + + def __init__(self): + self.layout() + + + def layout(self): + Q = ttk.Button(text = 'Q' , width = 6, command = lambda : press('Q')) + Q.grid(row = 3 , column = 5, ipadx = 6 , ipady = 10) + + K = ttk.Button(text = 'K' , width = 6, command = lambda : press('K')) + K.grid(row = 3 , column = 6, ipadx = 6 , ipady = 10) + + C = ttk.Button(text = 'C' , width = 6, command = lambda : press('C')) + C.grid(row = 3 , column = 7, ipadx = 6 , ipady = 10) + + G = ttk.Button(text = 'G' , width = 6, command = lambda : press('G')) + G.grid(row = 3 , column = 8, ipadx = 6 , ipady = 10) + + V = ttk.Button(text = 'V' , width = 6, command = lambda : press('V')) + V.grid(row = 3 , column = 9, ipadx = 6 , ipady = 10) + + J = ttk.Button(text = 'J' , width = 6, command = lambda : press('J')) + J.grid(row = 3 , column = 10, ipadx = 6 , ipady = 10) + + + # SECOND ROW + S = ttk.Button(text = 'S' , width = 6, command = lambda : press('S')) + S.grid(row = 4 , column = 6, ipadx = 6 , ipady = 10) + + I = ttk.Button(text = 'I' , width = 6, command = lambda : press('I')) + I.grid(row = 4 , column = 7, ipadx = 6 , ipady = 10) + + N = ttk.Button(text = 'N' , width = 6, command = lambda : press('N')) + N.grid(row = 4 , column = 8, ipadx = 6 , ipady = 10) + + D = ttk.Button(text = 'D' , width = 6, command = lambda : press('D')) + D.grid(row = 4 , column = 9, ipadx = 6 , ipady = 10) + + + # THIRD ROW + W = ttk.Button(text = 'W' , width = 6, command = lambda : press('W')) + W.grid(row = 5 , column = 5, ipadx = 6 , ipady = 10) + + T = ttk.Button(text = 'T' , width = 6, command = lambda : press('T')) + T.grid(row = 5 , column = 6, ipadx = 6 , ipady = 10) + + H = ttk.Button(text = 'H' , width = 6, command = lambda : press('H')) + H.grid(row = 5 , column = 7, ipadx = 6 , ipady = 10) + + E = ttk.Button(text = 'E' , width = 6, command = lambda : press('E')) + E.grid(row = 5 , column = 8, ipadx = 6 , ipady = 10) + + A = ttk.Button(text = 'A' , width = 6, command = lambda : press('A')) + A.grid(row = 5 , column = 9, ipadx = 6 , ipady = 10) + + M = ttk.Button(text = 'M' , width = 6, command = lambda : press('M')) + M.grid(row = 5 , column = 10, ipadx = 6 , ipady = 10) + + + # FOURTH ROW + U = ttk.Button(text = 'U' , width = 6, command = lambda : press('U')) + U.grid(row = 6 , column = 6, ipadx = 6 , ipady = 10) + + O = ttk.Button(text = 'O' , width = 6, command = lambda : press('O')) + O.grid(row = 6 , column = 7, ipadx = 6 , ipady = 10) + + R = ttk.Button(text = 'R' , width = 6, command = lambda : press('R')) + R.grid(row = 6 , column = 8, ipadx = 6 , ipady = 10) + + L = ttk.Button(text = 'L' , width = 6, command = lambda : press('L')) + L.grid(row = 6 , column = 9, ipadx = 6 , ipady = 10) + + + # FIFTH ROW + Z = ttk.Button(text = 'Z' , width = 6, command = lambda : press('Z')) + Z.grid(row = 7 , column = 5, ipadx = 6 , ipady = 10) + + B = ttk.Button( text= 'B' , width = 6 , command = lambda : press('B')) + B.grid(row = 7 , column = 6 , ipadx = 6 ,ipady = 10) + + F = ttk.Button(text = 'F' , width = 6, command = lambda : press('F')) + F.grid(row = 7 , column = 7, ipadx = 6 , ipady = 10) + + Y = ttk.Button(text = 'Y' , width = 6, command = lambda : press('Y')) + Y.grid(row = 7 , column = 8, ipadx = 6 , ipady = 10) + + P = ttk.Button(text = 'P' , width = 6, command = lambda : press('P')) + P.grid(row = 7 , column = 9, ipadx = 6 , ipady = 10) + + X = ttk.Button(text = 'X' , width = 6, command = lambda : press('X')) + X.grid(row = 7 , column = 10, ipadx = 6 , ipady = 10) \ No newline at end of file diff --git a/src/layouts/SquareAlphabetic.py b/src/layouts/SquareAlphabetic.py new file mode 100644 index 0000000..2533bce --- /dev/null +++ b/src/layouts/SquareAlphabetic.py @@ -0,0 +1,113 @@ +import tkinter as tk +from tkinter import ttk + +hold = " " + +def press(char): + global hold + hold += char + +class SquareAlphabetic(tk.Tk): + + def __init__(self): + self.layout() + + + def layout(self): + A = ttk.Button(text = 'A' , width = 6, command = lambda : press('A')) + A.grid(row = 3 , column = 5, ipadx = 6 , ipady = 10) + + B = ttk.Button( text= 'B' , width = 6 , command = lambda : press('B')) + B.grid(row = 3 , column = 6 , ipadx = 6 ,ipady = 10) + + C = ttk.Button(text = 'C' , width = 6, command = lambda : press('C')) + C.grid(row = 3 , column = 7, ipadx = 6 , ipady = 10) + + D = ttk.Button(text = 'D' , width = 6, command = lambda : press('D')) + D.grid(row = 3 , column = 8, ipadx = 6 , ipady = 10) + + E = ttk.Button(text = 'E' , width = 6, command = lambda : press('E')) + E.grid(row = 3 , column = 9, ipadx = 6 , ipady = 10) + + exclamation = ttk.Button(text = '!' , width = 6, command = lambda : press('!')) + exclamation.grid(row = 3 , column = 10, ipadx = 6 , ipady = 10) + + + # SECOND ROW + F = ttk.Button(text = 'F' , width = 6, command = lambda : press('F')) + F.grid(row = 4 , column = 5, ipadx = 6 , ipady = 10) + + G = ttk.Button(text = 'G' , width = 6, command = lambda : press('G')) + G.grid(row = 4 , column = 6, ipadx = 6 , ipady = 10) + + H = ttk.Button(text = 'H' , width = 6, command = lambda : press('H')) + H.grid(row = 4 , column = 7, ipadx = 6 , ipady = 10) + + I = ttk.Button(text = 'I' , width = 6, command = lambda : press('I')) + I.grid(row = 4 , column = 8, ipadx = 6 , ipady = 10) + + J = ttk.Button(text = 'J' , width = 6, command = lambda : press('J')) + J.grid(row = 4 , column = 9, ipadx = 6 , ipady = 10) + + question = ttk.Button(text = '?' , width = 6, command = lambda : press('?')) + question.grid(row = 4 , column = 10, ipadx = 6 , ipady = 10) + + + # THIRD ROW + K = ttk.Button(text = 'K' , width = 6, command = lambda : press('K')) + K.grid(row = 5 , column = 5, ipadx = 6 , ipady = 10) + + L = ttk.Button(text = 'L' , width = 6, command = lambda : press('L')) + L.grid(row = 5 , column = 6, ipadx = 6 , ipady = 10) + + M = ttk.Button(text = 'M' , width = 6, command = lambda : press('M')) + M.grid(row = 5 , column = 7, ipadx = 6 , ipady = 10) + + N = ttk.Button(text = 'N' , width = 6, command = lambda : press('N')) + N.grid(row = 5 , column = 8, ipadx = 6 , ipady = 10) + + O = ttk.Button(text = 'O' , width = 6, command = lambda : press('O')) + O.grid(row = 5 , column = 9, ipadx = 6 , ipady = 10) + + comma = ttk.Button(text = ',' , width = 6, command = lambda : press(',')) + comma.grid(row = 5 , column = 10, ipadx = 6 , ipady = 10) + + + # FOURTH ROW + P = ttk.Button(text = 'P' , width = 6, command = lambda : press('P')) + P.grid(row = 6 , column = 5, ipadx = 6 , ipady = 10) + + Q = ttk.Button(text = 'Q' , width = 6, command = lambda : press('Q')) + Q.grid(row = 6 , column = 6, ipadx = 6 , ipady = 10) + + R = ttk.Button(text = 'R' , width = 6, command = lambda : press('R')) + R.grid(row = 6 , column = 7, ipadx = 6 , ipady = 10) + + S = ttk.Button(text = 'S' , width = 6, command = lambda : press('S')) + S.grid(row = 6 , column = 8, ipadx = 6 , ipady = 10) + + T = ttk.Button(text = 'T' , width = 6, command = lambda : press('T')) + T.grid(row = 6 , column = 9, ipadx = 6 , ipady = 10) + + period = ttk.Button(text = '.' , width = 6, command = lambda : press('.')) + period.grid(row = 6 , column = 10, ipadx = 6 , ipady = 10) + + + # FITH ROW + U = ttk.Button(text = 'U' , width = 6, command = lambda : press('U')) + U.grid(row = 7 , column = 5, ipadx = 6 , ipady = 10) + + V = ttk.Button(text = 'V' , width = 6, command = lambda : press('V')) + V.grid(row = 7 , column = 6, ipadx = 6 , ipady = 10) + + W = ttk.Button(text = 'W' , width = 6, command = lambda : press('W')) + W.grid(row = 7 , column = 7, ipadx = 6 , ipady = 10) + + X = ttk.Button(text = 'X' , width = 6, command = lambda : press('X')) + X.grid(row = 7 , column = 8, ipadx = 6 , ipady = 10) + + Y = ttk.Button(text = 'Y' , width = 6, command = lambda : press('Y')) + Y.grid(row = 7 , column = 9, ipadx = 6 , ipady = 10) + + Z = ttk.Button(text = 'Z' , width = 6, command = lambda : press('Z')) + Z.grid(row = 7 , column = 10, ipadx = 6 , ipady = 10) \ No newline at end of file diff --git a/src/layouts/__pycache__/QWERTY.cpython-39.pyc b/src/layouts/__pycache__/QWERTY.cpython-39.pyc deleted file mode 100644 index d92d9ea..0000000 Binary files a/src/layouts/__pycache__/QWERTY.cpython-39.pyc and /dev/null differ