40 lines
764 B
Python
40 lines
764 B
Python
|
#!/usr/bin/env python
|
||
|
__version__="dev0.3"
|
||
|
__author__="AGE"
|
||
|
__date__="02004-08-06"
|
||
|
|
||
|
|
||
|
class FilmBar:
|
||
|
import sys
|
||
|
|
||
|
def __init__(self):
|
||
|
try:
|
||
|
import pygtk
|
||
|
pygtk.require("2.0")
|
||
|
import gtk
|
||
|
from gtk import glade
|
||
|
except:
|
||
|
print "dumme fehlermeldung"
|
||
|
sys.exit(1)
|
||
|
|
||
|
import filmGUI
|
||
|
fg = filmGUI.FilmGUI(gtk)
|
||
|
gtk.mainloop()
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
### defaults
|
||
|
# wo ist die Liste vom Joerch?
|
||
|
htmlfilmlist = "file:///home/age/divx.html"
|
||
|
# in welche xml Datei sollen die Filme?
|
||
|
xmlfilmlist = "myfilms.xml"
|
||
|
fb = FilmBar()
|
||
|
|
||
|
## testing ##
|
||
|
### 1. ###
|
||
|
### i've done this once - think it's enough ;)
|
||
|
# fb.convertJoerchs2XML(htmlfilmlist, xmlfilmlist)
|
||
|
|
||
|
### 2. ###
|
||
|
#fb.importXML(xmlfilmlist)
|
||
|
|