Logo Search packages:      
Sourcecode: viridian version File versions  Download package

def AmpacheTools::AmpacheGUI::AmpacheGUI::create_dialog_ok_or_close (   self,
  title,
  message 
)
Creates a generic dialog of the type specified with ok and cancel.

Definition at line 2676 of file AmpacheGUI.py.

                                                         :
            """Creates a generic dialog of the type specified with ok and cancel."""
            md = gtk.Dialog(str(title), self.window, gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))
            label = gtk.Label(message)
            label.set_line_wrap(True)
            md.get_child().pack_start(label)
            md.get_child().set_border_width(10)
            md.set_border_width(3)
            md.set_resizable(False)
            md.set_icon(self.images_pixbuf_viridian_simple)
            md.show_all()
            #md.set_title('Viridian')
            resp = md.run()
            md.destroy()
            if resp == gtk.RESPONSE_OK:
                  return "ok"
            else:
                  return "cancel"
            

Generated by  Doxygen 1.6.0   Back to index