Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8915

Re: web browsing short cut

Date 2011-07-06 10:02 +0200
From Thomas Jollans <t@jollybox.de>
Subject Re: web browsing short cut
References <CAHxMgEgRQfmX0Y4y5-AFD2K+o+m5eKR2JCd0EdxVgdjqTrEYvw@mail.gmail.com> <CAMZYqRSm9sUBfS9qaqvFhU1tQdpbaC-nW8QSzaBHMtO__wRhqQ@mail.gmail.com> <CAHxMgEjF1R_EoeJUC0nWWE-Qyq56doQTBthDOoc7-MyNCwTL_Q@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.690.1309939327.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 07/06/2011 03:30 AM, Dustin Cheung wrote:
> I am looking into Tkinter. But i am not sure if it will actually work.
> This maybe a crazy idea but i was wondering if i can put a web browser
> in the frame. I have tried to use Tkinter to resize and place the
> windows to certain areas of the screen but that's not working or the way
> im approaching this problem is completely wrong. I want to make a
> program that will have websites displayed in specific areas of the
> screen. I was planning on using the program on the big screen. So is it
> possible to put the web browser inside the frame in Tkinter?

What you could do, in effect, is write your own web browser, using an
existing rendering engine. I do not know which rendering engines are how
easily used in Tkinter code (possibly none of them).

This isn't a job for (traditional, cross-platform) Python. It *may* be
possible with pyWin32. It may be easier with the Windows Script Host
(which apparently can support Python). I personally would use
browser-side JavaScript; it's certainly possible to open a popup of a
specific size in JS, not sure about specific position on-screen. Maybe
you have to write an extension for Firefox or Chrome.

> 
> 
> On Sat, Jul 2, 2011 at 7:10 PM, Chris Rebert <clp2@rebertia.com
> <mailto:clp2@rebertia.com>> wrote:
> 
>     On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung <dustin299@gmail.com
>     <mailto:dustin299@gmail.com>> wrote:
>     > Hey guys,
>     > I am new to python. I want to make a shortcut that opens my websites
>     > and re-sizes them to  display on different areas on the screen. I
>     looked
>     > around but i had no luck. Is that possible with python? if so can
>     someone
>     > point to to the right direction? Here is what I came up with so far..
> 
>     The window positioning+resizing bit will likely require using
>     platform-specific APIs. Since you appear to be on Windows, the
>     relevant library would be pywin32 (http://pypi.python.org/pypi/pywin32
>     ). You would use it to invoke some COM API that does window
>     positioning+resizing. I am unable to give more details as I'm on a
>     Mac.
> 
>     Sidenote: Have you tried Firefox's "Bookmark All Tabs" feature?
> 
>     Cheers,
>     Chris
> 
> 
> 
> 
> -- 
> Dustin Cheung
> 
> 

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: web browsing short cut Thomas Jollans <t@jollybox.de> - 2011-07-06 10:02 +0200

csiph-web