probably because, as in the case of an error, there is no create_frame attribute in this module
im not very familiar with simlplegui, but i'm sure this is a GUI generator that uses Tkinter, so you don't need to create a frame because Tk does it for you, but you have to install Tkinter
here is a sample code:
import simplegui g = simplegui.GUI() def buttoncallback(): g.status("Button Clicked!") g.button("Click me!", buttoncallback) g.button("Click me too!", buttoncallback) def listboxcallback(text): g.status("listbox select: '{0}'".format(text)) g.listbox(["one", "two", "three"], listboxcallback) g.listbox(["A", "B", "C"], listboxcallback) def scalecallback(text): g.status("scale value: '{0}'".format(text)) g.scale("Scale me!", scalecallback) g.run()
you donβt need to actually force the frame to simply provide information for the frame or window, then Tk will automatically create a window with this information
Sorry if this is confusing, but I hope this helped
source share