?? playlist2html.py
字號:
#!/usr/bin/env python# -*- coding: Latin-1 -*-import userimport osfrom Playlist import Playlistdef main(): stdin = os.popen("kdialog --getsaveurl %s"%(user.home)) dest = stdin.readline().strip()[5:] plist = Playlist() print dest try: f = open(dest, "w") f.write(plist.toHtml()) f.close() os.system("kdialog --msgbox 'Amarok-playlist saved to %s'"%(dest)) except IOError: os.system('kdialog --error "Sorry, could not save the playlist to %s"'%(dest))if __name__ == "__main__": main()
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -