[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src Instance.py
From: |
Jason Cater |
Subject: |
gnue/designer/src Instance.py |
Date: |
Wed, 18 Jul 2001 18:27:20 -0700 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 01/07/18 18:27:20
Modified files:
designer/src : Instance.py
Log message:
Refined use of startup warning dialogs
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/Instance.py.diff?cvsroot=OldCVS&tr1=1.18&tr2=1.19&r1=text&r2=text
Patches:
Index: gnue/designer/src/Instance.py
diff -u gnue/designer/src/Instance.py:1.18 gnue/designer/src/Instance.py:1.19
--- gnue/designer/src/Instance.py:1.18 Wed Jul 18 18:17:08 2001
+++ gnue/designer/src/Instance.py Wed Jul 18 18:27:19 2001
@@ -71,11 +71,11 @@
if not os.access (location, os.R_OK):
self.Show(1)
- if not wxMessageDialog(self, \
+ if wxMessageDialog(self, \
'The requested file does not exist.\n'
'Do you want to create this file?'
'\n\nFile: %s' \
- % location, "File Not Found", wxYES_NO|wxICON_QUESTION
).ShowModal():
+ % location, "File Not Found", wxYES_NO|wxICON_QUESTION
).ShowModal() == wxID_NO:
sys.exit()
self.Show(0)
self.__createEmptyForm()
@@ -84,11 +84,11 @@
elif not os.access (location, os.W_OK):
self.Show(1)
- if not wxMessageDialog(self, \
+ if wxMessageDialog(self, \
'The requested file is Read Only.\n'
'To save any changes, you will \n'
'be required to do a "Save As..."\n\nFile: %s' \
- % location, "Read Only Warning", wxOK|wxCANCEL|wxICON_EXCLAMATION
).ShowModal():
+ % location, "Read Only Warning", wxOK|wxCANCEL|wxICON_EXCLAMATION
).ShowModal() == wxID_CANCEL:
sys.exit()
self.Show(0)
self.__loadForm(location)