Guest User

Untitled

a guest
Jan 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class MainWindow(GtkWindow):
  2. def __init__(self):
  3. Gtk.Window.__init__(self)
  4. self.builder = GtkBuilder()
  5. self.builder.add_from(path_to_my_glade_file)
  6. self.window = self.builder.get_object('main_window')
  7. self.window.connect('delete-event', Gtk.main_quit)
  8. self.window.fullscreen()
  9. self.window.show_all()
  10.  
  11. def open_window():
  12. win = MainWindow()
  13. win.connect("destroy", Gtk.main_quit)
  14. Gtk.main()
Add Comment
Please, Sign In to add comment