Project

General

Profile

Statistics
| Revision:

root / trunk / swipe / manualtron.py @ 222

History | View | Annotate | Download (959 Bytes)

1
#!/usr/bin/python -i
2

    
3
"""
4
  This file is part of Tooltron.
5
 
6
  Tooltron is free software: you can redistribute it and/or modify
7
  it under the terms of the Lesser GNU General Public License as published by
8
  the Free Software Foundation, either version 3 of the License, or
9
  (at your option) any later version.
10
 
11
  Tooltron is distributed in the hope that it will be useful,
12
  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
  Lesser GNU General Public License for more details.
15
  You should have received a copy of the Lesser GNU General Public License
16
  along with Tooltron.  If not, see <http://www.gnu.org/licenses/>.
17

18
  Copyright 2009 Bradford Neuman <bneuman@andrew.cmu.edu>
19

20
"""
21

    
22
# This allows you to interactively send crap to tooltron
23

    
24
import common
25
import sys
26

    
27
common.initBus(sys.argv[1])
28

    
29
def key():
30
    common.sendMessage(2,TT_GET_KEY,"")
31
    print common.readKey()
32