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

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #180 on: April 06, 2011, 12:16:41 PM »


Folks,

everybody is doing great, I do think that for the purposes of this thread and to track the creation/improvement of this browser that we need to focus on the one main script drawing in what we can from others, and learning lessons as we go, from Taco's script and examples we find elsewhere for inpiration

I have been trying to look at various ways to make our life a little easier and taking on board what Neal posted earlier in the thread about mechanize

I found the following sample of a browser released under the GPL3 which I think Neal will be especially interested in, I suspect we may get some answers from it.

The link is  http://gitorious.org/python-webkit-mechanize-browser

I have yet to attempt to try this but will as time allows, it sounds like it may assist .

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 #181 on: April 06, 2011, 02:37:31 PM »
Thanks, Jase. Their "git" links are broken. ::) You have to click on the "Source Tree" button and look on the right for the tar.gz download. Then you have to jump through a few hoops to extract it. ::) I hope their coding skills are better than their "git" skills or their setting of permissions on a downloadable file.

Any road, I'll have a look to see if there is anything useful.

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #182 on: April 06, 2011, 02:44:09 PM »
Thanks, Jase. Their "git" links are broken. ::) You have to click on the "Source Tree" button and look on the right for the tar.gz download. Then you have to jump through a few hoops to extract it. ::) I hope their coding skills are better than their "git" skills or their setting of permissions on a downloadable file.

Any road, I'll have a look to see if there is anything useful.


HeHe, I can get as far as using the 'example.py' - which tabs ok ,ut lacks the flare of Hammer - I tried to see what is differnt but failed to do so, DrPython complains about the back button...

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 #183 on: April 06, 2011, 03:16:10 PM »
Yea. There seems to be some "differences" in their coding. Still, there may be something in this that could be hacked into our code. Maybe.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #184 on: April 06, 2011, 06:18:48 PM »
For those wanting an updated hammer to look over:
http://nbrks.com/hammer/PCLinuxOS_Hammer.py-0.0.1.tar.xz

This can be extracted with file roller or right-click > extract in PCManFM. Ark should be able to extract it; other archiving tools, too.

Remember, this is still an early version of the browser.

Changes:
Back, forward and home right-click and buttons function. (The second home button is meant to be a new tab button. ::) ::))

Problems:
New tab button is home button.
Some links still not working.
Edit: Tabs function does not work.

I've probably missed other things. I'm too tired now to find more or to sort out these problems. Any assistance with correcting these would be appreciated.

Still to do:
Create Menu Bar -File, Edit, History, Bookmarks and such.
Create hidden directory/files for settings and bookmarks.
« Last Edit: April 07, 2011, 03:09:33 AM by Neal »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #185 on: April 06, 2011, 10:25:05 PM »
Thanks, Neal and Jase and everyone involved in this project... for the time and code that you all had pitched in to bring to PCLinuxOS its own webkit browser. I'm definitely one of its fervent tester.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #186 on: April 06, 2011, 10:58:37 PM »
Neal,
I renamed the tab button on my copy, but can't get the tab function to work.

Jase,
The script at http://gitorious.org/python-webkit-mechanize-browser is the same as the one that I got from the pywebkitgtk demo.  The code is posted on my reply #136.  The script I posted in reply #178 http://dl.dropbox.com/u/18945176/tabbed_browser2.py is the one I have installed the (non-working!) buttons onto the toolbar.  The tabs and right-click menu work, and I have done what I can with the back button, but the answer to the error "TypeError: go_back_requested_cb() takes exactly 1 argument (2 given)" must, I hope, be somewhere in the script.  If we can find it then we can code up the other buttons you will have a webkit browser with both buttons AND tabs.  So far it seems to be one OR the other.  The other option is to not have buttons other than tab and include the home command in the right-click menu.
 
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 #187 on: April 07, 2011, 03:12:39 AM »
Neal,
I renamed the tab button on my copy, but can't get the tab function to work.

Oops! I forgot to say that tabs would not work under "Problems." The code will work as a single frame browser only at this time.

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #188 on: April 07, 2011, 02:50:45 PM »

Neal,

Great stuff, I had a chance to stab away at this, we now has a '+' and it now spawns instances of it self..... but not in tabs yet

http://dl.dropbox.com/u/6031011/PCLinuxOS_Hammer_hootie.py

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 #189 on: April 07, 2011, 03:43:00 PM »
Jase,
That's good.  :D :D :D
The reason that the tab button is opening new windows is that the code is set up as a single frame browser. I'm working on it. :D

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #190 on: April 07, 2011, 04:30:29 PM »
Taco.22

Spent some time on TabbedBrowser2.  Got buttons working here.  Needs testing.

http://www.box.net/shared/9u450ely3t

Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #191 on: April 07, 2011, 04:37:05 PM »
Taco.22

Spent some time on TabbedBrowser2.  Got buttons working here.  Needs testing.

http://www.box.net/shared/9u450ely3t



just tested this and works really well ... nicely done ... looks like this should be incorporated in Hammer ;D ;D ;D

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #192 on: April 07, 2011, 04:37:55 PM »
Taco.22

Spent some time on TabbedBrowser2.  Got buttons working here.  Needs testing.

http://www.box.net/shared/9u450ely3t



Works well, here!

Galen

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #193 on: April 07, 2011, 04:50:07 PM »
Bravo :D :D :D

Well done ongoto:  where would we be without you ;D

What's next?
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 #194 on: April 07, 2011, 04:52:07 PM »
Bravo :D :D :D

Well done ongoto:  where would we be without you ;D

What's next?


+1 :D :D :D

I renamed it to PCLinuxOS_Hammer and set the default page to http://www.pclinuxos.com/

http://nbrks.com/hammer/PCLinuxOS_Hammer.py-0.0.1.1.tar.xz