Author Topic: Lets create a PCLinuxOS webkit browser (python)  (Read 28287 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #15 on: March 28, 2011, 02:13:44 PM »
Ok, sorry for my response, i didn't meant to offend anyone

My response was not meant to offend, either. I have my own opinions, which may come across rather strong at times.
I only wanted to say that we work on projects that appeal to us. Your post appeared to be a discouragement of that and to say that you had some project that we had to work on.

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #16 on: March 28, 2011, 02:22:29 PM »
Sorry i interfered, i should have encourage you guys.... i apologize for my post



Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #17 on: March 28, 2011, 02:24:53 PM »
right ... now thats sorted ..... GROUP HUG!!!!!!

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #18 on: March 28, 2011, 02:27:42 PM »
right ... now thats sorted ..... GROUP HUG!!!!!!

Okay but no sloppy kisses. ::) :P

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4530
  • Philosophy= Bigger Hammer
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #19 on: March 28, 2011, 02:30:35 PM »
hate it when this happens ... went looking for my hammer and when I come back all's hugs and kisses ?? 


you guys really suck ... I WANT TO HIT SOMEONE !!!!!!!!!!
Please Donate Today..Or I Will Make You Wish You Had

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #20 on: March 28, 2011, 02:34:39 PM »
hate it when this happens ... went looking for my hammer and when I come back all's hugs and kisses ?? 


you guys really suck ... I WANT TO HIT SOMEONE !!!!!!!!!!

Look around. I'm sure you can find someone/something to hit - but not me. You might damage your hammer. ;) ;D ;D

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3736
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #21 on: March 28, 2011, 02:37:40 PM »
Hammer for webkit browser  ???

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #22 on: March 28, 2011, 03:06:47 PM »
Slax,

Its all right, I was just voicing my opinion, no offence taken,

I am trying to 'get my head around' this stuff, as i see a great potential for embedded apps as well as a great very light home-grown browser.

Sproggy, between this and looking for the answer to the error in scrotwm - I am starting to get a headache...

Neal

Great stuff, its likly to bethe weekend before I get any 'quality time' for this, although I have been looking at the 'pygtk-demo' app trying to make sense of it....

Currently failing to lol

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #23 on: March 28, 2011, 03:41:53 PM »
Jase,
Got a bit of stress here, too. I'm not used to python. But I'm pushing ahead; maybe I can get something made that works. :D

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #24 on: March 28, 2011, 03:45:55 PM »
Now that all the problems are hammered out.......is it ready yet?   :)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #25 on: March 28, 2011, 03:52:38 PM »
Now that all the problems are hammered out.......is it ready yet?   :)

Needs more hammering. ;D

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12798
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #26 on: March 28, 2011, 04:07:34 PM »
Now that all the problems are hammered out.......is it ready yet?   :)

Needs more hammering. ;D

If I Had a Hammer

Andy
« Last Edit: March 28, 2011, 04:09:08 PM by AndrzejL »

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4530
  • Philosophy= Bigger Hammer
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #27 on: March 28, 2011, 05:22:12 PM »
Now that all the problems are hammered out.......is it ready yet?   :)

Needs more hammering. ;D


The Hammer.. good name for a no nonsense browser.. it just hammers away ..  The PCLinuxOS Hammer ... Kool..

glad you guys thought of it.. ;D
Please Donate Today..Or I Will Make You Wish You Had

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #28 on: March 29, 2011, 04:17:06 PM »

Ok I found another script - I am hoping we can mash these things together to get somthng really cool going

This example will wither open at www.google.com or if you use the command line you san ass the web address at the end as an argument (we could use surfraw and a box that takes cli instruction from the panel...)

eg appname http://www.pclinuxos.com/forum although this appears to be less stable than the shorter script

Code: [Select]
#!/usr/bin/env python
# -*- coding: latin-1
import os
import string
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()


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #29 on: March 29, 2011, 04:22:01 PM »
I'll check out this code and see if I can come up with something. :)