slotUI/SlotCli.py

Sat, 03 Dec 2011 09:26:20 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Sat, 03 Dec 2011 09:26:20 +0100
changeset 27
3e617fcf999a
parent 25
646ee4dc3a6b
child 35
00166228a419
permissions
-rwxr-xr-x

added exception, started SlotCli class

25
646ee4dc3a6b started communication class and CLI
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
1 #!/usr/bin/env python
646ee4dc3a6b started communication class and CLI
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
2 """
646ee4dc3a6b started communication class and CLI
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
3 Freeslot project
646ee4dc3a6b started communication class and CLI
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
4 Command line interface
646ee4dc3a6b started communication class and CLI
Malte Bayer <mbayer@neo-soft.org>
parents:
diff changeset
5 """
27
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
6
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
7 from freeslot import Blackbox
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
8
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
9 class SlotCli():
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
10 def __init__(self):
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
11 self.box = Blackbox()
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
12 self.box.connect()
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
13
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
14 def run(self):
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
15 """
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
16 Keyboard loop to control it???
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
17 """
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
18 return None
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
19
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
20 if __name__ == "__main__":
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
21 app = SlotCli()
3e617fcf999a added exception, started SlotCli class
Malte Bayer <mbayer@neo-soft.org>
parents: 25
diff changeset
22 app.run()

mercurial