def build_window(): app = Gtk.Window(Gtk.WindowType.TOPLEVEL) app.set_title(_("Invest Applet")) app.connect("destroy", Gtk.main_quit) app.set_property('resizable', False) applet = MatePanelApplet.Applet() applet_factory(applet, None, None) applet.reparent(app) app.show_all() return app
def build_window(): app = gtk.Window(gtk.WINDOW_TOPLEVEL) app.set_title(_("Invest Applet")) app.connect("destroy", gtk.main_quit) app.set_property('resizable', False) applet = mateapplet.Applet() applet_factory(applet, None) applet.reparent(app) app.show_all() return app