[prev in list] [next in list] [prev in thread] [next in thread]
List: gpsd-commit-watch
Subject: [Gpsd-commit-watch] r6886 - trunk
From: esr at BerliOS <esr () mail ! berlios ! de>
Date: 2009-12-21 13:53:30
Message-ID: 200912211353.nBLDrU6U000290 () sheep ! berlios ! de
[Download RAW message or body]
Author: esr
Date: 2009-12-21 14:53:29 +0100 (Mon, 21 Dec 2009)
New Revision: 6886
Modified:
trunk/xgps
Log:
Make AIS display honor the selected degree format.
Modified: trunk/xgps
===================================================================
--- trunk/xgps 2009-12-21 13:43:57 UTC (rev 6885)
+++ trunk/xgps 2009-12-21 13:53:29 UTC (rev 6886)
@@ -161,8 +161,9 @@
"Encapsulate store and view objects for watching AIS data."
AIS_ENTRIES = 10
DWELLTIME = 360
- def __init__(self):
+ def __init__(self, deg_type):
"Initialize the store and view."
+ self.deg_type = deg_type
self.name_to_mmsi = {}
self.named = {}
self.store = gtk.ListStore(str,str,str,str,str,str)
@@ -211,7 +212,7 @@
else:
latsuff = ""
lat = abs(lat)
- lat = gps.client.deg_to_str(gps.client.deg_dd, lat)
+ lat = gps.client.deg_to_str(self.deg_type, lat)
if lon < 0:
lonsuff = "W"
elif lon > 0:
@@ -394,7 +395,7 @@
aisframe = gtk.Frame(label="AIS Data")
self.aisbox.add(aisframe)
- self.aisview = AISView()
+ self.aisview = AISView(self.deg_type)
aisframe.add(self.aisview.widget)
self.window.show_all()
_______________________________________________
Gpsd-commit-watch mailing list
Gpsd-commit-watch@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpsd-commit-watch
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic