Skip to content

Commit

Permalink
Update vkeyboard.pyw
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiK002 authored May 23, 2022
1 parent bc16f39 commit 3c73e60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vkeyboard.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ except (ModuleNotFoundError, ImportError):

class VirtualKeyboard:

def __init__(self):
def __init__(self, master):
# Main Window
self.master = Tk()
self.master = master

# prevent from crash if photo isn't found
try:
Expand Down Expand Up @@ -900,7 +900,8 @@ class VirtualKeyboard:

if __name__ == '__main__':
# creates a keyboard body with no functionality
keyboard1 = VirtualKeyboard()
root = Tk()
keyboard1 = VirtualKeyboard(root)

# if user has keyboard module, adds functionality to keyboard
if has_keyboard:
Expand Down

0 comments on commit 3c73e60

Please sign in to comment.