| 546 |
_context = self.statusbar.get_context_id("do_open") |
_context = self.statusbar.get_context_id("do_open") |
| 547 |
|
|
| 548 |
self.errorstore.clear() |
self.errorstore.clear() |
|
|
|
| 549 |
self.modelview.clear() |
self.modelview.clear() |
| 550 |
|
|
| 551 |
# self.library.clear() |
# self.library.clear() |
| 552 |
|
|
| 553 |
|
print "Filename =",filename |
| 554 |
self.statusbar.push(_context,"Loading '"+filename+"'") |
self.statusbar.push(_context,"Loading '"+filename+"'") |
| 555 |
self.library.load(filename) |
self.library.load(filename) |
| 556 |
self.statusbar.pop(_context) |
print "Statusbar =",self.statusbar |
| 557 |
|
try: |
| 558 |
|
self.statusbar.pop(_context) |
| 559 |
|
except TypeError,e: |
| 560 |
|
print "For some reason, a type error (context=%s,filename=%s): %s" % (_context,filename,e) |
| 561 |
|
|
| 562 |
self.filename = filename |
self.filename = filename |
| 563 |
|
|
| 917 |
return _res |
return _res |
| 918 |
|
|
| 919 |
def error_callback(self,sev,filename,line,msg): |
def error_callback(self,sev,filename,line,msg): |
| 920 |
pos = self.errorstore.append(None, self.get_error_row_data(sev, filename,line,msg)) |
try: |
| 921 |
path = self.errorstore.get_path(pos) |
pos = self.errorstore.append(None, self.get_error_row_data(sev, filename,line,msg)) |
| 922 |
col = self.errorview.get_column(3) |
path = self.errorstore.get_path(pos) |
| 923 |
self.errorview.scroll_to_cell(path,col) |
col = self.errorview.get_column(3) |
| 924 |
|
self.errorview.scroll_to_cell(path,col) |
| 925 |
|
except Exception,e: |
| 926 |
|
print "UNABLE TO DISPLAY ERROR MESSAGE '%s'"%msg |
| 927 |
|
|
| 928 |
return 0; |
return 0; |
| 929 |
|
|