daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top