![]() |
Marguee with Python
Is there any way to make words scroll in python. Like <marquee> in HTML?
thanks -python |
What do you mean, "scroll IN python"? Python is a programming language, HTML is a mark-up language. A clear question is essential to a good response. Unclear questions cause response threads to run about forty-leben half-worthless posts. I see you are new to the forum. Welcome. Please the the rules/FAQ and a "How to Post..." thread.
|
Write a small HTML file with the marquee you want, save it as MyMarquee.html and run in from your Python program with these two lines:
:
import os |
Quote:
|
Quote:
|
thank you. the import os. os.startfile worked thank you.
- python |
Quote:
I think this will work with most operating systems according to the manual: :
import webbrowser |
Correction!!!!!!!!!!!!
:
import webbrowser |
I think that should be
:
import webbrowserAs for os.startfile, i'd imagine that uses Windows' start command or some such. KDE has similar functionality (and i'd bet Gnome does too). That would be cool to have cross platform, but would be tricky enough to implement. |
| All times are GMT -5. The time now is 11:22 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC