Skip to content

Commit

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

class VirtualKeyboard:

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

Expand Down Expand Up @@ -900,8 +900,7 @@ class VirtualKeyboard:

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

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

0 comments on commit e5d705c

Please sign in to comment.