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

Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #330 on: April 15, 2011, 11:39:40 AM »
whoa.. Kori.. there is a missing smiley from your post..

Sweet Smile ;D

Offline scoundrel

  • Administrator
  • Hero Member
  • *****
  • Posts: 4586
  • Philosophy= Bigger Hammer
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #331 on: April 15, 2011, 12:11:44 PM »
whoa.. Kori.. there is a missing smiley from your post..

Sweet Smile ;D

.. 8)..
Please Donate Today..Or I Will Make You Wish You Had

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #332 on: April 15, 2011, 12:12:57 PM »
This is truly great!!

Thanks to Ongoto who is special beyond words, I hope that you stick with us for hammer and beyond, here is a special screenie -

http://i53.tinypic.com/2rh5h78.png

I am thinking of sending a suggestion to the Packaging dept. to request a package for ongoto-1.1pclos2011 and thus have it preserved for all time in the repos.  Just think of the advantages of having ongoto-1.1 downloaded to your computer at any time.  It could be used in conjunction with your favourite editor.  It would seamlessly integrate with your preferred IDE.  I would have to insist though that they do a start release at 1.1.  You know what the 1.0 releases can be like ;D.


And we gots to have a Taco-1.1.rpm to go with it. We gots to get the matched pair, you know. :D

And for the very few that might be interested, a Neal-0.0.0.0.1.rpm. Naw. Strike that. :P 

Hootiegibbon

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #333 on: April 15, 2011, 04:57:30 PM »
Just a quick repost for Neal - got the bar in the right place




Jase

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #334 on: April 15, 2011, 08:51:59 PM »
Thanks for the kudos   ;D

But don't credit me too much.  I'd be totally lost if it weren't for the original app we're building on.  I'm a noob to Python and it's been interesting.  If we can keep this thing small and simple I'll keep pluggin' at it.
« Last Edit: April 30, 2011, 11:39:50 PM by ongoto »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #335 on: April 15, 2011, 11:44:45 PM »
Thanks for the kudos   ;D

But don't credit me too much.  I'd be totally lost if it weren't for the original app we're building on.  I'm a noob to Python and it's been interesting.  If we can keep this thing small and simple I'll keep pluggin' at it.

Let's keep it 'PCLOS Hammer' by and for all the members.   :)

We're just wanting to let you know that we appreciate what you do.

And we appreciate Taco.22, Jase and Sproggy, too.

Great work, guys! :) :) :) :) :) :) :) :) :)

Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #336 on: April 16, 2011, 07:05:28 AM »
i apologise for my outburst yesterday ... i should probably have stayed of the pc ... i was having strapping removed from my seperated shoulder and i was not in the nicest of moods ... so i apologise if i upset anyone

Kori sweet smile ;D ;D

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12657
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #337 on: April 16, 2011, 07:25:31 AM »
i apologise for my outburst yesterday ... i should probably have stayed of the pc ... i was having strapping removed from my seperated shoulder and i was not in the nicest of moods ... so i apologise if i upset anyone

Kori sweet smile ;D ;D


I figured it was your evil twin up too no good. You know, the one with the goatee. :D

« Last Edit: April 16, 2011, 07:56:46 AM by Texstar »

Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline Sproggy

  • Hero Member
  • *****
  • Posts: 1484
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #338 on: April 16, 2011, 10:18:23 AM »
i apologise for my outburst yesterday ... i should probably have stayed of the pc ... i was having strapping removed from my seperated shoulder and i was not in the nicest of moods ... so i apologise if i upset anyone

Kori sweet smile ;D ;D


I figured it was your evil twin up too no good. You know, the one with the goatee. :D




where did you get that picture of my dad from!!!!

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #339 on: April 19, 2011, 06:35:57 PM »
It's gettin' better
Shook out some more bugs.

Zoom is working a lot better and, for those of us who squint to see the text,  you can set a minimum font size now without affecting zoom.

Added:
    Translate option in context menu

Just select some text, right click on it, choose translate.
There are some excellent international links on our main page.    
--------------
You might need to install simplejson (python module)

At the moment, to change the translated language, edit the script and change the LANGUAGE = "en" to your own ("fr", "es", "de") etc.  I'll work up a complete list.

To set the minimum font size change MIN_FONT_SIZE = 12.0 to something else (10.0, 15.0) whatever helps you.

TODO:
A better way to set preferences.
Open in a new window is a joke.

http://www.box.net/shared/9u450ely3t
« Last Edit: April 20, 2011, 03:29:43 AM by ongoto »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #340 on: April 20, 2011, 12:15:51 AM »
I checked in Synaptic and easily found python-simplejson but not python-urllib. Couldn't find urllib at all. ??? (I thought I had that installed. ???) There is a python-urlgrabber.

Any road, I attempted to launch the latest --
Quote
[neal@neal A]$ /home/neal/Projects/browser/A/tabbed_browser2v4.py
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 1: #!/usr/bin/env: No such file or directory
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 26: from: command not found
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/8983.
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/8983.
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/8983.
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/8983.
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/8983.
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/8983.
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 39: ABOUT_PAGE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 48: INFO_PAGE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 58: DEFAULT_PAGE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 59: HOME_PAGE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 60: SEARCH_PAGE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 61: MIN_FONT_SIZE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 62: DEFAULT_ZOOM: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 63: LANGUAGE: command not found
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 65: syntax error near unexpected token `('
/home/neal/Projects/browser/A/tabbed_browser2v4.py: line 65: `class PCToolBar(gtk.Toolbar):'
[neal@neal A]

And a file was generated in the folder containing tabbed_browser2v4.py, titled sys.

So on the possibility that the error is in my system, I will reboot and try again.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #341 on: April 20, 2011, 12:23:46 AM »
After a reboot, there was no change. Terminal output was the same and the same file was generated. ???

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #342 on: April 20, 2011, 01:18:58 AM »
Neal

Try launching with python.
python /home/neal/Projects/browser/A/tabbed_browser2v4.py

There are two ells in the module urllib.  I had it misspelled in my post.  Sorry boot that.   ;D

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #343 on: April 20, 2011, 01:57:58 AM »
Neal

Try launching with python.
python /home/neal/Projects/browser/A/tabbed_browser2v4.py

Thanks. It launches with that command.

Quote
There are two ells in the module urllib.  I had it misspelled in my post.  Sorry boot that.   ;D

Yes, I knew it had 2 Ls. :) I just checked again in Synaptic, but searching for urllib does not show urllib, python-urllib or py-urllib/pyurllib. On the possibilty that something was missing from my pkglist files, I reloaded but no joy.

ongoto

  • Guest
Re: Lets create a PCLinuxOS webkit browser (python)
« Reply #344 on: April 20, 2011, 02:04:53 AM »
Neal

I can't find it either.
If the app launched with no complaints about it, then you're ok.

Urllib may be one that's included in some other module.  I think I read about that somewhere but forgot.  
« Last Edit: April 20, 2011, 02:07:39 AM by ongoto »