def __init__(self,plugin): self.mainframe = plugin.mainframe wb.Notebook.__init__(self) with self: with wb.VBox(pack_args = ('email_page','Mail')): with wb.HBox(pack_args = ('error_bar',)): wb.gtk_widget(gtk.Label)(pack_args = ('error', True)) wb.Button('Close', pack_args = ('close_box', False)) with wb.HBox(pack_args = ('header_info',False)): with wb.LabeledWidgets(2, pack_args = ('to_subj',True)): wb.Entry('*****@*****.**', pack_args = ('to', 'To:')) wb.Entry('Photos', pack_args = ('subject', 'Subject:')) wb.Button('SEND', pack_args = ('send', False, True)) wb.ScrollingTextView(pack_args = ('message',)) wb.Pack(gtk.Label('All selected images in the current browser view will be sent'), False) with wb.LabeledWidgets(2, pack_args = ('config_page','Mail Configuration')): wb.Entry('*****@*****.**', pack_args = ('username','Username:'******'Enter a password...', pack_args = ('password','Password:'******'smtp.email.com', pack_args = ('server','SMTP Server:')) wb.Entry('1024', pack_args = ('size','Maximum Image Size:',)) wb.ComboBox(['Yes','No'], pack_args = ('apply_edits','Apply Image Edits:',)) self.show_all() self['email_page']['error_bar'].hide() self['email_page']['error_bar']['error'].set_property("wrap",True) self['email_page']['error_bar']['close_box'].connect("clicked",self.error_close) self['email_page']['error_bar']['close_box'].set_image(gtk.image_new_from_stock(gtk.STOCK_CLOSE,gtk.ICON_SIZE_MENU)) self['email_page']['header_info']['send'].connect("clicked",self.do_send) self['config_page']['password'].connect("clicked",self.password_dialog)