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 <c...@rebertia.com > <mailto:c...@rebertia.com>> wrote: > > On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung <dustin...@gmail.com > <mailto:dustin...@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 > > -- http://mail.python.org/mailman/listinfo/python-list