diff --git a/src/controller/mainController.py b/src/controller/mainController.py index b2c0ff37..9937b96a 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -923,7 +923,7 @@ class Controller(object): x = tweet["coordinates"]["coordinates"][0] y = tweet["coordinates"]["coordinates"][1] address = geocoder.reverse_geocode(y, x) - dlg = messages.viewTweet(address[0].__str__(), False) + dlg = commonMessageDialogs.view_geodata(address[0].__str__()) else: output.speak(_(u"There are no coordinates in this tweet")) except GeocoderError: diff --git a/src/wxUI/commonMessageDialogs.py b/src/wxUI/commonMessageDialogs.py index b64f1128..10fbe035 100644 --- a/src/wxUI/commonMessageDialogs.py +++ b/src/wxUI/commonMessageDialogs.py @@ -64,3 +64,7 @@ def no_followers(): def no_friends(): return wx.MessageDialog(None, _(u"This user has no friends. {0} can't create a timeline.").format(application.name), _(u"Error"), wx.ICON_ERROR).ShowModal() + +def view_geodata(geotext): + """Specific message dialog to display geolocation data""" + return wx.MessageDialog(None, _(u"Geolocation data: {0}").format(geotext), _(u"Geo data for this tweet")).ShowModal() \ No newline at end of file