| author | melunko |
| Thu Feb 07 19:36:22 2008 +0000 (2008-02-07) | |
| branch | trunk |
| changeset 912 | b200d6198191 |
| permissions | -rw-r--r-- |
| renatofilho@870 | 1 |
import dbus |
| renatofilho@870 | 2 |
bus = dbus.SessionBus() |
| renatofilho@870 | 3 |
|
| renatofilho@870 | 4 |
proxy = bus.get_object ('br.org.indt.GMyth', '/br/org/indt/GMyth')
|
| renatofilho@870 | 5 |
iface = dbus.Interface (proxy, dbus_interface='br.org.indt.GMyth') |
| renatofilho@870 | 6 |
iface.Connect ('192.168.2.222', 6543, 'mythtv', 'mythtv')
|
| renatofilho@870 | 7 |
print iface.Connected () |
| renatofilho@870 | 8 |
print iface.GetChannelList () |
| renatofilho@870 | 9 |
print "--------------------------------------------------------" |
| renatofilho@870 | 10 |
print iface.GetRecordedList () |
| renatofilho@870 | 11 |
#print iface.FileExists ("teste.nuv")
|
| renatofilho@870 | 12 |
#print iface.GetProgramList (1003, ') |