* GPS Locations Windows
@ 2011-01-27 16:22 leandrohbatista
0 siblings, 0 replies; only message in thread
From: leandrohbatista @ 2011-01-27 16:22 UTC (permalink / raw)
Hi!
I'd like to parse some information to GPS Locations window. I tried to
execute the following code
File: Test.py
-------------------------------------------------------------------------------------------------
def Locations_Test (ui_control):
test = (
"C:\Test.adb:5:1: Message")
category = (
"Locations")
GPS.Locations.parse(test, category)
def on_GPS_UI_ready (hook_name):
menu_item = GPS.Menu.create (
path = "/Tools/Test...",
on_activate = Locations_Test)
GPS.Hook ("gps_started").add (on_GPS_UI_ready)
----------------------------------------------------------------------------------------------------------------------------------------------------------
And I got the following error message:
Traceback (most recent call last):
File "C:\Documents and Settings\lhbatist\.gps\plug-ins\Teste.py",
line 21, in Locations_Test
GPS.Locations.parse(test, category)
GPS.Unexpected_Exception: unexpected internal exception Exception
name: CONSTRAINT_ERROR
Message: s-valint.adb:63 explicit raise
Call stack traceback locations:
0x1037cf5 0x1037d43 0xc00bbc 0xc016fd 0xbe85a0 0xede140 0x1e08ec29
What is wrong with my code?
Thanks!
Leandro.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-27 16:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27 16:22 GPS Locations Windows leandrohbatista
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox