From: leandrohbatista <leandrohbatista@gmail.com>
Subject: GPS Locations Windows
Date: Thu, 27 Jan 2011 08:22:49 -0800 (PST)
Date: 2011-01-27T08:22:49-08:00 [thread overview]
Message-ID: <7408407f-e800-4e3b-9e44-ca7bd9d91b74@b34g2000yqc.googlegroups.com> (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.
reply other threads:[~2011-01-27 16:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox