~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to scripts/python-console

  • Committer: drtomc
  • Date: 2008-02-29 03:00:36 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:628
console: Add output based interrupt. This allows users to interrupt long
         running outputs.
         TODO: poll for interrupts from cpu intensive ops.
         TODO: styling bug: the input box overlaps the output box. Matt?

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import common.chat
18
18
 
19
19
class Interrupt(Exception):
20
 
    pass
 
20
    def __init__(self):
 
21
        Exception.__init__(self, "Interrupted!")
21
22
 
22
23
class ExpiryTimer(object):
23
24
    def __init__(self, idle):