web browsing short cut
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.. Thanks in advance, -- import webbrowser # The websites i want to open.. url1 = 'http://www.python.org/' url2 = 'http://www.google.com/' url3 = 'http://msn.com/' # the path to ie ie = webbrowser.get('c:\\program files\\internet explorer\\iexplore.exe') ie.open(url1) ie.open(url2) ie.open(url3) -- Dustin -- http://mail.python.org/mailman/listinfo/python-list
Re: web browsing short cut
Hey, 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? 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: web browsing short cut
Okay thanks for the help guys, ill keep you guys posted. On Wed, Jul 6, 2011 at 1:19 PM, Ian wrote: > On 03/07/2011 02:21, 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.. >> >> >> I suggest you create a dummy page on your disk with an onload event that > uses javascript to open, size and load all the windows you want. > > Then create a short cut to the dummy page. > > Regards > > Ian > > > > -- > http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list> > -- Dustin Cheung -- http://mail.python.org/mailman/listinfo/python-list