Changeset 7600


Ignore:
Timestamp:
Jun 29, 2018, 9:56:53 AM (16 months ago)
Author:
daduve
Message:

New dialog window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • home-eraser/trunk/fuentes/home-eraser-gui.install/usr/share/home-eraser/HomeEraser.py

    r7587 r7600  
    1717import ssl
    1818import time
     19import Dialog
    1920#import HomeEraserServer
    2021
     
    288289                        if ( len(delete[self.home]) >0 ) or ( len(delete[self.net]) >0 ):
    289290                               
    290                                 dialog = Gtk.MessageDialog(None,0,Gtk.MessageType.WARNING, Gtk.ButtonsType.YES_NO, "HOME ERASER")
    291                                 dialog.format_secondary_text(_("Are you sure you want to delete?"))
     291                                #dialog = Gtk.MessageDialog(None,0,Gtk.MessageType.WARNING, Gtk.ButtonsType.YES_NO, "HOME ERASER")
     292                                #dialog.format_secondary_text(_("Are you sure you want to delete?"))
     293                               
     294                                dialog=Dialog.QuestionDialog(self.main_window,_(u"HOME ERASES"),_(u"Are you sure you want to delete?"))
    292295                                response=dialog.run()
    293296                                dialog.destroy()
    294                                 if response == Gtk.ResponseType.YES:
     297                                #if response == Gtk.ResponseType.YES:
     298                                if response == Gtk.ResponseType.OK:
    295299                                       
    296300                                        self.apply_button.set_sensitive(False)
Note: See TracChangeset for help on using the changeset viewer.