Re: Drop Down Menus...
bruce wrote: > Hi... > > Never used python, but I have a question regarding Drop Down Menus. Does > Python allow me to create a website, that will permit the user to create > Drop Down menus that can be initiated with the right mouse click? If it can, > is it fairly easy to implement? > > Thanks > > -Bruce > No you wouldn't use python for this. Look at javascript & CSS. e.g. http://www.youngpup.net/2004/transmenus/examples and http://www.robocup2004.pt/ Colin -- http://mail.python.org/mailman/listinfo/python-list
Re: regex to exctract informations
Bob wrote: > Dears, > > I am trying to search and replace strings with regex. > > The string is identified by a keyword : > > IDImage("1M234567"); > DescriptionImage("Desc of the Image 1"); > > I want to exctract the IDImage (1M234567 ) and the Description. > > The ID are characters and numbers, the description too. > > Thx, > > Bertrand If the string is always in IDImage("#"); Then what about x='IDImage("#");' print x[9:-3] Likewise for the Description. HTH Colin -- http://mail.python.org/mailman/listinfo/python-list
Re: Calling a Postgres Function using CGI written in Python
A quick google for "Python CGI" gives you lots of links. But if you intend to do much in the way of cgi, then I would recommend the spyce framework,http://spyce.sourceforge.net/ HTH Colin Fuzzydave wrote: > I need to call a function stored in Postgres which does a lot of the db > and calculation work > all the SQL queries are hardcoded in a file called cmi.py. What i need > to do is too to call > my function from postgres passing in my product_code variable into it > and returning the > value from the query into a variable i can print to screen as part of a > HTML page. > > I am sure its very easy but have never done anything in python as have > none of the guys > i work with making this a bit of a problem. > > Cheers Guys > David > -- http://mail.python.org/mailman/listinfo/python-list
Re: Python 2.1 Bible Source
SuppressedPen wrote: > Hi Everyone! > > Just started with Python 2 weeks ago and I can't put it down it's to easy > and to powerful, I'm sure the goons will be after us for having it soon, Hi > Hi. > > Was wondering if anyone might know where I can find the source code for > PYTHON 2.1 BIBLE book. Apparently it was online until the publisher sold > the company. I also understand it has been sold a second time since the > book was published. Maybe someone has a copy? Thanks. DOUG. you can access the web-site through the web.archive.org, e.g. http://web.archive.org/web/*/http://www.pythonapocrypha.com/ The site runs fairly slowly, but all the pages seem to be there. I even downloaded the source code to the book from http://web.archive.org/web/20040610022324/http://www.pythonapocrypha.com/PySource.tgz HTH Colin -- http://mail.python.org/mailman/listinfo/python-list
Re: Put a url in a browsers address bar
> >> I would like to place a url in my browsers address bar, then execute. >> How can do this? >> > > def goToGoogle(): > import webbrowser > webbrowser.open("www.google.com"); > Thanks for the quick reply. Do you know what module I would use to fill out a form on an open web page? Thanks Colin -- http://mail.python.org/mailman/listinfo/python-list
Put a url in a browsers address bar
Dear All, I would like to place a url in my browsers address bar, then execute. How can do this? e.g. def goToGoogle(): url = "www.google.com" b = openBrowser() b.goToUrl(url) return True Thanks for any help Colin -- http://mail.python.org/mailman/listinfo/python-list