Nadie Modera (Vive ..Hasta el 31 Diciembre 2010) Aprovechen xD

Tema en 'Cementerio De Temas' iniciado por Pancita, 15 Sep 2010.

Estado del Tema:
Cerrado para nuevas respuestas
  1. El Mister

    El Mister Usuario Casual nvl. 2
    687/812

    Registrado:
    22 Dic 2009
    Mensajes:
    1.198
    Me Gusta recibidos:
    0
    :baba:!/usr/bin/env python
    import sys
    import gtk
    import webkit
    DEFAULT_URL = 'http://www.google.com' # Change this as you Wish
    class SimpleBrowser: # needs GTK, Python, Webkit-GTK
    def __init__(self):
    self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
    self.window.set_position(gtk.WIN_POS_CENTER_ALWAYS)
    self.window.connect('delete_event', self.close_application)
    self.window.set_default_size(350, 20)
    vbox = gtk.VBox(spacing=5)
    vbox.set_border_width(5)
    self.txt_url = gtk.Entry()
    self.txt_url.connect('activate', self._txt_url_activate)
    self.scrolled_window = gtk.ScrolledWindow()
    self.webview = webkit.WebView()
    self.scrolled_window.add(self.webview)
    vbox.pack_start(self.scrolled_window, fill=True, expand=True)
    self.window.add(vbox)
    def _txt_url_activate(self, entry):
    self._load(entry.get_text())
    def _load(self, url):
    self.webview.open(url)
    def open(self, url):
    self.txt_url.set_text(url)
    self.window.set_title('%s' % url)
    self._load(url)
    def show(self):
    self.window.show_all()
    def close_application(self, widget, event, data=None):
    gtk.main_quit()
    if __name__ == '__main__':
    if len(sys.argv) > 1:
    url = sys.argv[1]
    else:
    url = DEFAULT_URL
    gtk.gdk.threads_init()
    browser = SimpleBrowser()
    browser.open(url)
    browser.show()
    gtk.main()

    Este artículo fue copiado de Un navegador web en un script de python de 1.2Kb
    Visita el sitio origianl para más información
    También puedes visitar 140GEEK
     
  2. Tenkai~

    Tenkai~ Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    11 Ago 2009
    Mensajes:
    14.232
    Me Gusta recibidos:
    1
  3. MAN OF STREET

    MAN OF STREET Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    17 Abr 2010
    Mensajes:
    18.514
    Me Gusta recibidos:
    4
  4. GATALINA

    GATALINA Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    8 May 2009
    Mensajes:
    12.307
    Me Gusta recibidos:
    11
    jghjghjgjgjh
     
  5. Tenkai~

    Tenkai~ Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    11 Ago 2009
    Mensajes:
    14.232
    Me Gusta recibidos:
    1
  6. El Mister

    El Mister Usuario Casual nvl. 2
    36/41

    Registrado:
    22 Dic 2009
    Mensajes:
    1.198
    Me Gusta recibidos:
    0
    soy hombre, ¿acaso no sale en el perfil?
     
  7. Tenkai~

    Tenkai~ Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    11 Ago 2009
    Mensajes:
    14.232
    Me Gusta recibidos:
    1
  8. MAN OF STREET

    MAN OF STREET Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    17 Abr 2010
    Mensajes:
    18.514
    Me Gusta recibidos:
    4
    y asi no mas po :musicos:
     
  9. ~Arthas

    ~Arthas Usuario Maestro nvl. 6 ★ ★ ★ ★
    687/812

    Registrado:
    28 Jun 2010
    Mensajes:
    70.705
    Me Gusta recibidos:
    2
  10. Tenkai~

    Tenkai~ Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    11 Ago 2009
    Mensajes:
    14.232
    Me Gusta recibidos:
    1
  11. Sever

    Sever Usuario Maestro nvl. 6 ★ ★ ★ ★
    687/812

    Registrado:
    29 Oct 2009
    Mensajes:
    82.938
    Me Gusta recibidos:
    22
    kljkklkhhkhklhlhlkhlk
     
  12. Tenkai~

    Tenkai~ Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    11 Ago 2009
    Mensajes:
    14.232
    Me Gusta recibidos:
    1
Estado del Tema:
Cerrado para nuevas respuestas