def close_sticky(self,widget,event):
##print "error whille closing windwo"
self.save_sticky()
dialog = Gtk.MessageDialog(self.window, 0, Gtk.MessageType.QUESTION,
Gtk.ButtonsType.YES_NO, "Do you want to DELETE sticky or not")
response = dialog.run()
dialog.destroy()
if response == Gtk.ResponseType.YES:
os.remove(self.path)
self.window.close()
Revealer_Glade.notes_list.remove(self)
self.application_menu_object.remove_deleted_note_from_menu( self.title if self.title else str(self.uuid))
self.window.hide()
评论列表
文章目录