/[papo]/gnue/forms/src/uidrivers/_base/UIdriver.py
ViewVC logotype

Diff of /gnue/forms/src/uidrivers/_base/UIdriver.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by styxman, Fri Aug 30 21:33:58 2002 UTC revision 1.7 by apronotti, Fri Sep 27 20:21:21 2002 UTC
# Line 66  class GFUserInterfaceBase(GFEventAware): Line 66  class GFUserInterfaceBase(GFEventAware):
66              'uiABOUT'          : self.aboutBox,              'uiABOUT'          : self.aboutBox,
67              'exitApplication'  : self.exitApplication,              'exitApplication'  : self.exitApplication,
68              'msgBoxUI'         : self.msgBox,              'msgBoxUI'         : self.msgBox,
69                'genericBox'       : self.genericBox,
70              # Clipboard contents              # Clipboard contents
71              'setCLIPBOARD'     : self.setClipboardContents,              'setCLIPBOARD'     : self.setClipboardContents,
72              'getCLIPBOARD'     : self.getClipboardContents,              'getCLIPBOARD'     : self.getClipboardContents,
# Line 286  class GFUserInterfaceBase(GFEventAware): Line 286  class GFUserInterfaceBase(GFEventAware):
286      dialog.showModal()      dialog.showModal()
287      dialog.destroy()      dialog.destroy()
288    
289    
290      #
291      # genericBox
292      #
293      def genericBox(self,event):
294          message = event.data[0]
295          caption = "Aviso"
296          buttonSet = event.data[1]
297          if len(event.data) > 2:
298            defaultButton = event.data[2]
299          else:
300            defaultButton = -1
301          if len(event.data) > 3:
302            cancelButton = event.data[3]
303          else:
304            cancelButton = -1
305    
306          self.genericBox = uiDlg = self._DIALOGS['genericBox'](self.mainWindow, caption)
307          self.genericBox = dlg = uiDlg.createGenericBox(message, buttonSet)
308          
309          dlg.ShowModal()
310          
311          event.data = [uiDlg.getResult()]
312    
313    #    #
314    # updateEntryEditor    # updateEntryEditor
315    #    #

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26