try to update source window when breakpoints change

this is not tested yet
This commit is contained in:
Tom Tromey
2015-05-08 13:01:23 -06:00
parent 6b5c4dc9df
commit 7647b97c01
4 changed files with 95 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2013 Tom Tromey <tom@trolley.com>
# Copyright (C) 2013, 2015 Tom Tromey <tom@trolley.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -25,8 +25,9 @@ class _Event(object):
def disconnect(self, callback):
self.funcs.remove(callback)
def post(self):
def post(self, *args, **kwargs):
for fun in self.funcs:
fun()
fun(*args, **kwargs)
frame_changed = _Event()
location_changed = _Event()