Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Google Keep Window

By: a guest on Apr 20th, 2013  |  syntax: Python  |  size: 1.17 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
  2. ### BEGIN LICENSE
  3. # This file is in the public domain
  4. ### END LICENSE
  5.  
  6. from locale import gettext as _
  7.  
  8. from gi.repository import Gtk , WebKit  # pylint: disable=E0611
  9. import logging
  10. logger = logging.getLogger('gkeeper')
  11.  
  12. from gkeeper_lib import Window
  13. from gkeeper.AboutGkeeperDialog import AboutGkeeperDialog
  14. from gkeeper.PreferencesGkeeperDialog import PreferencesGkeeperDialog
  15.  
  16. # See gkeeper_lib.Window.py for more details about how this class works
  17. class GkeeperWindow(Window):
  18.     __gtype_name__ = "GkeeperWindow"
  19.    
  20.     def finish_initializing(self, builder): # pylint: disable=E1002
  21.         """Set up the main window"""
  22.         super(GkeeperWindow, self).finish_initializing(builder)
  23.  
  24.         self.AboutDialog = AboutGkeeperDialog
  25.         self.PreferencesDialog = PreferencesGkeeperDialog
  26.        
  27.         self.scrolledwindow = self.builder.get_object("scrolledwindow")
  28.        
  29.         self.webview = WebKit.WebView()
  30.        
  31.         self.scrolledwindow.add(self.webview)
  32.         self.webview.show()
  33.                
  34.         self.webview.open("https://drive.google.com/keep/")