def search_location2(self,widget):
		cm2 = WhereAmI(self,location = self.entry21.get_text(),latitude = self.latitude2,longitude = self.longitude2)
		if cm2.run() == Gtk.ResponseType.ACCEPT:
			self.latitude2,self.longitude2,self.location2 = cm2.get_lat_lon_loc()
			if self.location2:
				self.entry21.set_text(self.location2)
		cm2.destroy()		
	def search_location(self,widget):	
		cm1 = WhereAmI(self,location = self.entry11.get_text(),latitude = self.latitude,longitude = self.longitude)
		if cm1.run() == Gtk.ResponseType.ACCEPT:
			self.latitude,self.longitude,self.location = cm1.get_lat_lon_loc()
			if self.location:
				self.entry11.set_text(self.location)
		cm1.destroy()		
 def search_location(self, widget):
     cm1 = WhereAmI(self, location=self.entry11.get_text(),
                    latitude=self.latitude, longitude=self.longitude)
     if cm1.run() == Gtk.ResponseType.ACCEPT:
         lat, lon, loc = cm1.get_lat_lon_loc()
         print(lat, lon, loc)
         self.latitude = lat
         self.longitude = lon
         self.location = loc
         if self.location is not None:
             self.entry11.set_text(self.location)
     cm1.destroy()
Example #4
0
 def search_location2(self, widget):
     cm2 = WhereAmI(self, location=self.entry21.get_text(),
                    latitude=self.latitude2, longitude=self.longitude2)
     if cm2.run() == Gtk.ResponseType.ACCEPT:
         lat, lon, loc = cm2.get_lat_lon_loc()
         self.latitude2 = lat
         self.longitude2 = lon
         self.location2 = loc
         if self.location2:
             self.entry21.set_text(self.location2)
     cm2.destroy()
Example #5
0
 def search_location(self, widget):
     cm1 = WhereAmI(self, location=self.entry11.get_text(),
                    latitude=self.latitude, longitude=self.longitude)
     if cm1.run() == Gtk.ResponseType.ACCEPT:
         lat, lon, loc = cm1.get_lat_lon_loc()
         print(lat, lon, loc)
         self.latitude = lat
         self.longitude = lon
         self.location = loc
         if self.location is not None:
             self.entry11.set_text(self.location)
     cm1.destroy()
Example #6
0
def classFactory(iface):
    # load WhereAmI class from file WhereAmI
    from whereami import WhereAmI
    return WhereAmI(iface)