Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.04; 'python?': 0.05; 'url:pypi': 0.08; '(possibly': 0.09; 'pywin32': 0.09; 'shortcut': 0.09; 'tkinter': 0.09; 'api': 0.11; 'displayed': 0.11; 'am,': 0.13; 'wrote:': 0.15; 'library': 0.15; 'apis.': 0.16; 'direction?': 0.16; 'far..': 0.16; 'feature?': 0.16; 'guys,': 0.16; 'received:192.168.1.40': 0.16; 'url:pywin32': 0.16; 'looked': 0.16; 'pm,': 0.16; 'cheers,': 0.19; '(which': 0.20; 'extension': 0.22; 'maybe': 0.22; 'header:In-Reply-To:1': 0.22; 'opens': 0.23; 'appear': 0.23; 'code': 0.24; 'hey': 0.26; 'windows': 0.26; 'tried': 0.27; "i'm": 0.27; 'work.': 0.28; 'host': 0.28; 'do,': 0.28; 'sat,': 0.28; 'subject:web': 0.28; 'bit': 0.28; 'script': 0.29; 'problem': 0.29; 'wondering': 0.30; 'invoke': 0.30; 'unable': 0.31; 'chris': 0.32; 'certainly': 0.32; 'does': 0.32; 'actually': 0.33; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'someone': 0.34; 'none': 0.35; 'crazy': 0.35; 'frame': 0.35; "isn't": 0.35; 'certain': 0.36; 'idea': 0.36; 'url:python': 0.37; 'open': 0.37; 'some': 0.37; 'but': 0.37; 'could': 0.37; 'using': 0.37; 'received:192': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'put': 0.38; 'screen': 0.38; 'easier': 0.39; 'received:192.168.1': 0.39; 'to:addr:python.org': 0.39; 'give': 0.60; 'your': 0.60; 'easily': 0.61; 'browser': 0.61; 'engine.': 0.63; 'details': 0.65; 'here': 0.66; 'received:62': 0.67; 'browser,': 0.67; 'relevant': 0.69; 'websites': 0.78; 'cheung': 0.84; 'from:addr:t': 0.84; 'luck.': 0.84; 'mac.': 0.84; 'popup': 0.84 Date: Wed, 06 Jul 2011 10:02:19 +0200 From: Thomas Jollans User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: web browsing short cut References: In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=5C8691ED Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 56 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1309939327 news.xs4all.nl 21841 [2001:888:2000:d::a6]:36122 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8915 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 > wrote: > > On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung > 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 > >