576 |
with get_user_proj_file and cache it in self.__usrProjFile. |
with get_user_proj_file and cache it in self.__usrProjFile. |
577 |
|
|
578 |
Show a busy cursor while loading the file. |
Show a busy cursor while loading the file. |
579 |
|
|
580 |
|
If the file is not available, leave a note to the console. |
581 |
""" |
""" |
582 |
if self.__usrProjFile is None: |
if self.__usrProjFile is None: |
583 |
ThubanBeginBusyCursor() |
ThubanBeginBusyCursor() |
584 |
try: |
try: |
585 |
projfile, warnings = get_user_proj_file() |
projfile, warnings = get_user_proj_file() |
586 |
self.show_warnings(_("Warnings"), projfile.GetFilename(), |
if warnings: |
587 |
warnings) |
sys.stderr.write("".join(warnings)) |
588 |
self.__usrProjFile = projfile |
self.__usrProjFile = projfile |
589 |
finally: |
finally: |
590 |
ThubanEndBusyCursor() |
ThubanEndBusyCursor() |