from gtk import * win = GtkWindow() def main(): win.set_usize(300, 350) win.connect("destroy", mainquit) win.set_title("Scientific Calculator") win.show() mainloop() main()