~thomas-deruyter-3/qreator/qreator

« back to all changes in this revision

Viewing changes to qreator/qrcodes/QRCodeLocationGtk.py

  • Committer: Stefan Schwarzburg
  • Date: 2012-06-11 08:33:11 UTC
  • Revision ID: stefan.schwarzburg@googlemail.com-20120611083311-ejf9d4isqlvzzssq
A first attempt to introduce threads in order to give IO-heavy autocompleters a chance to do the lifting in the background. 

Since getting the actual SoftwareCenterApp apps seems to be impossible with python-threading or with python-multiprocessing, this does not make it much faster. But it will keep the Window from freezing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    def on_activated(self):
68
68
        pass
69
69
 
 
70
    def on_prepared(self):
 
71
        pass
 
72
 
70
73
    def on_map_widget_button_press_event(self, actor, event, view):
71
74
        x, y = event.get_coords()
72
75
        lat, lon = view.x_to_longitude(x), view.y_to_latitude(y)