home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June / CHIP 2006-06.2.iso / program / freeware / Democracy-0.8.2.exe / xulrunner / python / frontend.py < prev    next >
Encoding:
Python Source  |  2006-04-10  |  1.4 KB  |  41 lines

  1. #import feed
  2. #import config
  3. #import resource
  4. #import template
  5. #import database
  6.  
  7. #import re
  8. #import os
  9. #import tempfile
  10. #import sys
  11. #import time
  12. #import threading
  13.  
  14.  
  15. # Almost everything is split out into files under frontend-implementation.
  16. # Note: these can't be in just any order; there is some subtlety in the
  17. # initialization order, so take care.
  18. from frontend_implementation.HTMLDisplay import HTMLDisplay, getServerPort, execChromeJS, getDTVAPICookie, getDTVAPIURL
  19. from frontend_implementation.Application import Application
  20. from frontend_implementation.UIBackendDelegate import UIBackendDelegate
  21. from frontend_implementation.MainFrame import MainFrame
  22. from frontend_implementation.VideoDisplay import VideoDisplay, PlaylistItem, PlaybackController
  23.  
  24. # Python's sys.exit isn't sufficient in a Windows application. It's not
  25. # clear why.
  26. # NEEDS: this is probably *not* what we want to do under XUL.
  27. from ctypes.wintypes import windll
  28. def exit(returnCode):
  29.     windll.kernel32.ExitProcess(returnCode)
  30.  
  31. # NEEDS: preferences
  32. #        config.set(config.RUN_DTV_AT_STARTUP, <bool>)
  33. #        config.set(config.CHECK_CHANNELS_EVERY_X_MN, minutes)
  34. #        config.set(config.LIMIT_UPSTREAM, <bool>)
  35. #        config.set(config.UPSTREAM_LIMIT_IN_KBS, <real>)
  36. #        config.set(config.PRESERVE_X_GB_FREE, <real>)
  37.  
  38.  
  39. ###############################################################################
  40. ###############################################################################
  41.