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

Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #75 on: March 30, 2011, 02:27:31 PM »
i absolutely love this browser project .... this is gonna be super lightweight browser for the Mini ISO's

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #76 on: March 30, 2011, 03:13:39 PM »
I've been trying to add tabs. :-\ Failing so far. ::) :( Might take a while.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #77 on: March 30, 2011, 03:15:19 PM »
no problem, but python isn't my thing

Working on lxautostart, will spend a new design  ;D

You do good python coding, though. :)

New lxautostart design? That sounds good. :) :)

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #78 on: March 30, 2011, 03:57:10 PM »
Leiche,
Home button working great. :D Positioned in the expected place, too :D


Leiche's code works good here too.   :)  Window size is better too.

Cleaned up some of the older code.

Line 18:
Move line 18 (name = "PCLinuxOS Hammer") to line 22 (after default_site = "http://www.pclinuxos.com") so it will be part of class Browser.

Line 42: change name to self.name

Line 87: vbox.pack_start(self.url_bar, False, True, 0)
can be deleted because url_bar is already included with toolbar.

Could we make an icon out of this?

« Last Edit: March 30, 2011, 04:24:48 PM by ongoto »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #79 on: March 30, 2011, 04:33:25 PM »
Leiche,
Home button working great. :D Positioned in the expected place, too :D


Leiche's code works good here too.   :)  Window size is better too.

Cleaned up some of the older code.

Line 18:
Move line 18 (name = "PCLinuxOS Hammer") to line 22 (after default_site = "http://www.pclinuxos.com") so it will be part of class Browser.

Line 42: change name to self.name

Line 87: vbox.pack_start(self.url_bar, False, True, 0)
can be deleted because url_bar is already included with toolbar.


After making those changes, the browser fails to launch. ???

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #80 on: March 30, 2011, 04:36:24 PM »
Leiche,
Home button working great. :D Positioned in the expected place, too :D


Leiche's code works good here too.   :)  Window size is better too.

Cleaned up some of the older code.

Line 18:
Move line 18 (name = "PCLinuxOS Hammer") to line 22 (after default_site = "http://www.pclinuxos.com") so it will be part of class Browser.

Line 42: change name to self.name

Line 87: vbox.pack_start(self.url_bar, False, True, 0)
can be deleted because url_bar is already included with toolbar.


After making those changes, the browser fails to launch. ???



I made the changes here and all is OK ......  :(  ?

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #81 on: March 30, 2011, 04:57:21 PM »
Ok folks

Truly great work so far, it really makes me proud to be associated with PCLinuxOS and all the great folk therein, I cant beleive how fast this has been put together.

As mentioned earlier I do have a todo list

Tab support :

We have 2 ways we could go we could use native tabbing as I suspect Neal is trying or we can use an app like 'tabbed' (ther is a request for it...) which is a generall tabbing app that allow you to tab together different apps. because I tend to use the Dynamic WindowManagers (and I am working with sproggy to get ScrotWM working correctly, I would actully prefer non-nativetabbing as a dynamic WM effectivly does this anyway, although i will go with the majority. (could be cool to have a version that does not tab..)

Actvate :set and :map and other webkit controls:

 these allow you to set the external download manager, fonts, CSS, spellchecking, other external handlers etc directly 'on the fly' from the browser urlbar ( and if we can sort a config .dotfile they can be set there also) Jumanji browser does this, so we have a source of the how to.  

Bookmark support

at the moment you would need to have a html page or a xmarks account honmepage to be able to use boookmarks, native support in plain text (like jumanji) or html would be good

Cookie support.

this again would be done via webkit (again jumanji offers basic cookie acceptance), I would love to see this have a whitelist/blackli ability

Webpage source view

Again via webkit - jumanji can do it I want 'The Hammer' to do it too

Script blocking:

This can be activated by webkit iirc, I think that jumanji blocks scripts by default in his manor and you give the 'go ahead' for them to work

AdBlocking -

This is possible too afaik via a :set line

CA root cert handling

This would be a nice extra XXXterm browser does this already and is  a webkit minibrowser it may be worth looking how this is done

External Download app:

I think that we could probably have wget with a zenity gui around it to make it look better  (this will need the :set function avaialable I think)

Any thoughts on the above?

btw the editors dont like spaces it seems and prefer <tab>ulation not sure how to stop cut'n'paste from introducing them


Jase
« Last Edit: March 30, 2011, 04:59:20 PM by Hootiegibbon »


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 #82 on: March 30, 2011, 05:14:42 PM »
Good list, Jase. Here's hoping we can accomplish the goals. :)

On tabbed browsing, I'm still at the cussing stage of adding it. Worse than that with bookmarks. LOL But I'll keep hacking away until something works. Or until one of our team gets ahead of me. That would please me greatly, you know. :) :)

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12797
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #83 on: March 30, 2011, 05:17:25 PM »
Only 4 typos Jase.

I am so proud...

Andy

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #84 on: March 30, 2011, 05:25:14 PM »
In addition to the above post

Some points of interest / ramblings of a madman

The Jumanji Website with some infomation I think we should try for the same level of features https://pwmt.org/projects/jumanji/

I use keybindings quite often so it would be nice to have those keybindings availabel in TheHammer

UserScripts - the 'FollowHints' script is very cool and somthing I use quite often

Where possible I think we should be able to call for additional functionality from external sources as Neal mentioned earlier

getting a working .doffile (.TheHammerRC?) so that we can set all the 'standard functions' these could be different between the different versions of PCLinuxOS

Other broswer projects to look at for inspiration (&code) Surf (suckless), Vimprobable2 (will get link later), Jumanji, XXXterm, Midori....

Later on get the browser listed on the webkit site (apps that use webkit)
 
keep the core part of the app small and add via external scripts /skinned external apps where possible

... ther will be more but for now...

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 #85 on: March 30, 2011, 05:42:08 PM »
Many hands make light the work. :) Plenty to go around, eh, Jase? :) :)

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #86 on: March 30, 2011, 05:56:48 PM »
Many hands make light the work. :) Plenty to go around, eh, Jase? :) :)

Neal,

Ther sure is.. I will be seeing if I can make sense of those other browsers and see how the webkit control element can be activated

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 #87 on: March 30, 2011, 06:10:14 PM »
Gonna have to give it up for the day soon. Not going to be able to do a 20 hour day today. :( :( :( But I'll be back at it after some rest.

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #88 on: March 31, 2011, 12:35:28 AM »
Wow, I'm impressed :)
I only tripped over this thread yesterday and it is quite exciting.  PCLinuxOS and its very own browser - who'd 've thunk it!  I have given it a run and I like what I see.  I don't have anything to offer as regarding programming skills, but I do have a comment regarding dependencies when you give it a run in testing. 
At first I couldn't get the script to work.  It is in the right place with its desktop menu in order but it wouldn't launch.  I had a look at Synaptic and downloaded python-qt4-webkit (4.8.2-1pclos2011), python-webkitgtk (1.1.8-2pclos2010) and webkit-gtklauncher (1.3.1-4pclos2011).  That got everything working, although I'm not sure which one(s) did the trick.  I run Openbox and they were not part of the original install.
Just thought I'd mention this for when it comes to packaging.
Keep up the good work - I'm even starting to get a small handle on python!   
Linux Registered User # 529407


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #89 on: March 31, 2011, 12:57:19 AM »
I believe pywebkitgtk was mentioned previously in this thread. Python-gobject is needed. If we include the use of javascript, webkit-jsc will be needed.

This browser is built using pygtk, so python-qt4-webkit isn't needed.