Ticket #319: bug_319.py

File bug_319.py, 704 bytes (added by singesang, 12 years ago)

Script to reproduce the bug

Line 
1#! /usr/bin/python
2import dbus
3import time
4bus = dbus.SessionBus()
5conn = bus.get_object('org.navit_project.navit',
6                       '/org/navit_project/navit')
7iface = dbus.Interface(conn, dbus_interface='org.navit_project.navit');
8iter=iface.iter();
9navit=bus.get_object('org.navit_project.navit', conn.get_navit(iter));
10iface.iter_destroy(iter);
11navit_iface = dbus.Interface(navit, dbus_interface='org.navit_project.navit.navit');
12navit_iface.set_destination((1, 0xc1c116, 0x26e33a), 'bla');
13navit_iface.set_center((1, 0xc1b969, 0x26c9a1));
14navit_iface.set_position((1, 0xc1b969, 0x26c9a1));
15#navit_iface.set_center((1, 0xc1c116, 0x26e33a));
16#navit_iface.set_position((1, 0x1611bc, 0x5c29a2));