How do you put a GUI for a python script?

Solution
G
Tkinter yes that's what i use.

from Tkinter import *
from tkMessageBox import *

def answer():
showerror("Answer", "Sorry, no answer available")

def callback():
if askyesno('Verify', 'Really quit?'):
showwarning('Yes', 'Not yet implemented')
else:
showinfo('No', 'Quit has been cancelled')

Button(text='Quit', command=callback).pack(fill=X)
Button(text='Answer', command=answer).pack(fill=X)
mainloop()


Some of this may change for python 3 search on internet if it comes up with error.
G

Guest

Guest
Tkinter yes that's what i use.

from Tkinter import *
from tkMessageBox import *

def answer():
showerror("Answer", "Sorry, no answer available")

def callback():
if askyesno('Verify', 'Really quit?'):
showwarning('Yes', 'Not yet implemented')
else:
showinfo('No', 'Quit has been cancelled')

Button(text='Quit', command=callback).pack(fill=X)
Button(text='Answer', command=answer).pack(fill=X)
mainloop()


Some of this may change for python 3 search on internet if it comes up with error.
 
Solution