![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2006
Posts: 7
Rep Power: 0
![]() |
Marguee with Python
Is there any way to make words scroll in python. Like <marquee> in HTML?
thanks -python |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
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
os.startfile("MyMarquee.html")
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#4 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#5 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jun 2006
Posts: 7
Rep Power: 0
![]() |
thank you. the import os. os.startfile worked thank you.
- python |
|
|
|
|
|
#7 | |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Quote:
I think this will work with most operating systems according to the manual: import webbrowser
webbrowser("MyHTML.html")
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Correction!!!!!!!!!!!!
import webbrowser
webbrowser.open("MyHTML.html")
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#9 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
I think that should be
import webbrowser
webbrowser.open("MyHTML.html")As 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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|