i am trying to make a password system that will run another one of my programs when answered correctly. not sure how to call my main program in the password prog function. i have played w this over and over, and browsed the library and i am officially stuck. :)
heres my password prog:
#!user/bin/python
from Tkinter import *
def GetValue():
password= ent.get()
if password == 'harmoni':
menu_widget_test.pyw #this is name of main prog to be called
ent.delete(0,END)
else:
lab2=Label(root, text= 'try again').pack()
ent.delete(0,END)
root = Tk()
root.geometry('150x200+500+200')
lab = Label(root, text= 'password')
ent = Entry(root, bg = 'white')
button = Button(root, text = 'Enter Password', command = GetValue)
ent.focus()
lab.pack(anchor = W)
ent.pack(anchor = W)
button.pack(anchor = E)
root.mainloop()