From: Kevin A. <ka...@us...> - 2004-09-10 17:52:48
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29789 Modified Files: resourceEditor.py Log Message: fixed messageDialog with wx.ICON_INFORMATION | wx.YES_NO | wx.NO_DEFAULT Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.210 retrieving revision 1.211 diff -C2 -d -r1.210 -r1.211 *** resourceEditor.py 22 Aug 2004 19:11:34 -0000 1.210 --- resourceEditor.py 10 Sep 2004 17:52:38 -0000 1.211 *************** *** 547,550 **** --- 547,551 ---- if self.startName in self.components: + print "dragging" if not self.movingComponent and self.resizingHandleTarget: self.resizingHandler[self.resizingHandleTarget](event) *************** *** 931,935 **** msg = "You will lose any changes you've made to %s.\n\nAre you sure you want to revert to the last saved version?" % filename result = dialog.messageDialog(self, msg, 'resourceEditor', ! wx.ICON_EXCLAMATION | wx.YES_NO | wx.CANCEL) save = result.returnedString if save == "Cancel" or save == "No": --- 932,936 ---- msg = "You will lose any changes you've made to %s.\n\nAre you sure you want to revert to the last saved version?" % filename result = dialog.messageDialog(self, msg, 'resourceEditor', ! wx.ICON_EXCLAMATION | wx.YES_NO | wx.CANCEL | wx.NO_DEFAULT) save = result.returnedString if save == "Cancel" or save == "No": *************** *** 1114,1118 **** aWidget = self.components[self.startName] msg = "Are you sure you want to delete %s %s?" % (aWidget.__class__.__name__, aWidget.name) ! result = dialog.messageDialog(self, msg, 'Delete Component', wx.ICON_INFORMATION) if result.accepted: self.hideSizingHandles() --- 1115,1120 ---- aWidget = self.components[self.startName] msg = "Are you sure you want to delete %s %s?" % (aWidget.__class__.__name__, aWidget.name) ! result = dialog.messageDialog(self, msg, 'Delete Component', ! wx.ICON_INFORMATION | wx.YES_NO | wx.NO_DEFAULT) if result.accepted: self.hideSizingHandles() *************** *** 1486,1490 **** aWidget = self.components[self.startName] msg = "Are you sure you want to Cut %s %s?" % (aWidget.__class__.__name__, aWidget.name) ! result = dialog.messageDialog(self, msg, 'Cut Component', wx.ICON_INFORMATION) if result.accepted: self.copyWidgetDescriptionToClipboard(self.startName) --- 1488,1493 ---- aWidget = self.components[self.startName] msg = "Are you sure you want to Cut %s %s?" % (aWidget.__class__.__name__, aWidget.name) ! result = dialog.messageDialog(self, msg, 'Cut Component', ! wx.ICON_INFORMATION | wx.YES_NO | wx.NO_DEFAULT) if result.accepted: self.copyWidgetDescriptionToClipboard(self.startName) |