def drawsplash(self,master): # Create about dialog. Pmw.aboutversion(self.version) Pmw.aboutcopyright(self.copyright) Pmw.aboutcontact(self.contact) self.about = Pmw.AboutDialog(master, applicationname = self.progname) self.about.after(2000,self.removesplash)
def About(): Pmw.aboutversion('1.0') Pmw.aboutcontact( 'For any query about this application refer to the following contact: \n' + 'Email- [email protected] \n' + 'Github profile- https://github.com/riti1302') about = Pmw.AboutDialog(root)
def _runMemoryLeakTest(): global top top = MyToplevel() Pmw.MegaToplevel(top) Pmw.AboutDialog(top) Pmw.ComboBoxDialog(top) Pmw.CounterDialog(top) Pmw.Dialog(top) Pmw.MessageDialog(top) Pmw.PromptDialog(top) Pmw.SelectionDialog(top) Pmw.TextDialog(top) Pmw.ButtonBox(top).pack() Pmw.ComboBox(top).pack() Pmw.Counter(top).pack() Pmw.EntryField(top).pack() Pmw.Group(top).pack() Pmw.LabeledWidget(top).pack() Pmw.MenuBar(top).pack() Pmw.MessageBar(top).pack() Pmw.NoteBook(top).pack() Pmw.OptionMenu(top).pack() Pmw.PanedWidget(top).pack() Pmw.RadioSelect(top).pack() Pmw.ScrolledCanvas(top).pack() Pmw.ScrolledField(top).pack() Pmw.ScrolledFrame(top).pack() Pmw.ScrolledListBox(top).pack() Pmw.ScrolledText(top).pack() Pmw.TimeCounter(top).pack()
def about(self): """ Opens a display window with information about the application. """ Pmw.aboutversion('Version 1.0\nMay 10, 2002') Pmw.aboutcontact('Mark Rivers\n' + 'The University of Chicago\n' + '[email protected]\n') t = Pmw.AboutDialog(self.top, applicationname='epicsLogger')
def create(parent): version = parent.Version p, c = gui_support.buildDate() Pmw.aboutversion( "%s \n(Executed from %s)\n\nPython built on: %s\nCDAT built on: %s" % (version, sys.prefix, p, c)) Pmw.aboutcopyright(""" Copyright: 2001-2008, Regents of the University of California All rights reserved.\n\n This release of CDAT incorporates modules from other organizations besides LLNL some of which are distributed under open source licenses of their choosing, and therefore may be subject to different terms and conditions. We ask that users respect these all terms and conditions as well as any copyright notices requirements. """) Pmw.aboutcontact( """ Go to http://cdat.sourceforge.net for documentation, support, bug reporting, and releases. Program for Climate Model Diagnosis and Intercomparison Lawrence Livermore National Laboratory Livermore, CA 94550 """) about = Pmw.AboutDialog( parent, applicationname='The Visual Climate Data Analysis Tools') # Position dialog popup parent_geom = parent.geometry() geom = string.split(parent_geom, '+') d1 = string.atoi(geom[1]) d2 = string.atoi(geom[2]) about.geometry("+%d+%d" % (d1, d2))
def main_window_start(opts): """ Everything GUI gets started from this routine. """ root = Tkinter.Tk() #root.option_readfile('optionDB') Pmw.initialise() set_pmw_about_info() mpf = main_panel_factory.MainPanelFactory(opts) mpf.create(root) if opts.no_about == False: # Show about window config_manager = ConfigManager.ConfigManager.getInstance() a = Pmw.AboutDialog(root, applicationname=config_manager.get( 'about_info', 'app_name')) a.show() # This is a quick fix since something # locks the main window event loop. w = Tkinter.Toplevel() w.destroy() root.update() return root
def __createAboutBox(self): Pmw.aboutversion(self.appversion) Pmw.aboutcopyright(self.copyright) contact_data = 'For more information,' if self.contactname != None: contact_data = contact_data + ' contact:\n\n ' + self.contactname if self.contactphone != None: contact_data = contact_data + '\n Phone: ' + self.contactphone if self.salesemail != None: contact_data = contact_data + '\n Sales Email: ' + self.salesemail if self.supportemail != None: contact_data = contact_data + '\n Support Email: ' + self.supportemail if self.url != None: contact_data = contact_data + '\n Web Site: ' + self.url Pmw.aboutcontact(contact_data) self.about = Pmw.AboutDialog(self._hull, applicationname=self.appname) self.about.withdraw() return None
def about_gui(self): Pmw.aboutversion('1.0\n Mar 15 2015') Pmw.aboutcopyright('Author: Cassio H. S. Amador') Pmw.aboutcontact('For more informations/bug reporting:\n' + ' email: [email protected]') self.about = Pmw.AboutDialog(self.root, applicationname='Ref Setup') self.about.withdraw() self.about.show()
def _onHelpAbout(self): # Create the 'about the program' dialog. Pmw.aboutversion('0.1') Pmw.aboutcopyright('Copyright NASA/GSFC 2008') Pmw.aboutcontact('For more information, contact ' + \ 'Eric Winter ([email protected]).') aboutDialog = Pmw.AboutDialog(self, applicationname='PyPSF')
def About(): Pmw.aboutversion('1.0') Pmw.aboutcopyright('Copyright Wallyware, inc 2016\nAll rights reserved') Pmw.aboutcontact('For information about this application contact:\n' + '*****@*****.**') about = Pmw.AboutDialog(root, applicationname='ppLogger') about.activate(globalMode=0, geometry='centerscreenfirst') about.withdraw() about.show()
def _onHelpAbout(self): if debug: print 'Help/About...' # Create the 'about the program' dialog. Pmw.aboutversion('1.2') Pmw.aboutcopyright('Copyright NASA/GSFC 2008-2014') Pmw.aboutcontact('For more information, contact the ' + \ 'FSSC Helpdesk\n([email protected]).') aboutDialog = Pmw.AboutDialog(self, applicationname='ModelEditor')
def __createAboutBox(self): Pmw.aboutversion(self.appversion) Pmw.aboutcopyright(self.copyright) Pmw.aboutcontact( 'For more information, contact:\n %s\n Phone: %s\n Email: %s' %\ (self.contactname, self.contactphone, self.contactemail)) self.about = Pmw.AboutDialog(self._hull, applicationname=self.appname) self.about.withdraw()
def about(self, *args): """Display the about box.""" Pmw.aboutversion(getVersion()) Pmw.aboutcopyright('Copyright 2000, 2001') Pmw.aboutcontact( 'This program is licensed under the GNU General Public License\n' + 'For more information, please see\n' + 'http://www.gnu.org/') self._about_dialog = Pmw.AboutDialog(self, applicationname='FORG') # self._about_dialog.show() return None
def about (): Pmw.aboutversion('1.0') Pmw.aboutcopyright('Copyright George Lambrev 2007\nAll rights reserved') Pmw.aboutcontact( ' IS2S52 - Project - IS (2006/07):\n' + ' George Lambrev\n' + ' Phone: 01446737808\n' + ' email: [email protected]') about = Pmw.AboutDialog(root, applicationname='HOF')
def show_about_dialog(self): # About dialog frame created here using Pmw Pmw.aboutversion('1.0') Pmw.aboutcopyright('Copyright Thiran Softwares 2019\nAll rights reserved') Pmw.aboutcontact( 'For information about this application contact:\n' + ' email: [email protected]' ) about = Pmw.AboutDialog(self.master, title='About AMR Extractor', buttons=('OK',)) about.activate(geometry='centerscreenfirst')
def helpAbout(self): Pmw.aboutversion(TelStat_cfg.TELSTAT_VERSION + ' ' + TelStat_cfg.TELSTAT_DATE + '\n') Pmw.aboutcontact( 'Brought to you by the Subaru Software Development Group\n' + 'Bruce Bon, Arne Grimstrup, Takeshi Inagaki\n' + 'National Astronomical Observatory of Japan\n' + 'Subaru Telescope\nHilo, Hawaii\n\n' + 'Alerts spoken by Heidi Van der Veer') about = Pmw.AboutDialog( self.parent, applicationname='Subaru Telescope Status Window')
def onabout(self): # tp = Toplevel(self.tp) # global pi # pi = PhotoImage(file='./rc/app.gif') # f = Frame(tp) # f.pack(side,left=padx=10,pady=10) # Label(f, Pmw.aboutversion('1.0') Pmw.aboutcopyright(unicode('Copyright 2003 上海成美电子通讯有限公司 \n保留所有版权')) about = Pmw.AboutDialog(self.component('hull'),applicationname =session.app_title)
def initAboutPopup(self): # Create About Pop-up Pmw.aboutversion('1.0') Pmw.aboutcopyright('Apache License\n' + 'Version 2.0, January 2004') Pmw.aboutcontact( 'PyMOL Oculus Rift Viewer and Leap Motion Mover\n' + 'Max Klein, Jeliazko Jeliazkov, Henry Lessen, and Mariusz Matyszewski, 2015.\n' + 'https://github.com/lqtza/OcuMOL_Leap' ) # note github link cannot be copied for some reason... self.about = Pmw.AboutDialog(self.parent, applicationname="OcuMOL Leap") self.about.withdraw()
def doBaseForm(self, master): # Create the Balloon. self.balloon = Pmw.Balloon(master) self.menuBar = Pmw.MenuBar(master, hull_borderwidth=1, hull_relief='raised', hotkeys=1, balloon=self.balloon) self.menuBar.pack(fill='x') self.menuBar.addmenu('File', 'Exit') self.menuBar.addmenuitem('File', 'command', 'Exit the application', label='Exit', command=self.exit) self.menuBar.addmenu('View', 'View user information') self.menuBar.addmenuitem('View', 'command', 'Get user information', label='Get info', command=self.getStatus) self.menuBar.addmenu('Help', 'About Example 10-4', side='right') self.menuBar.addmenuitem('Help', 'command', 'Get information on application', label='About...', command=self.help) self.dataFrame = Frame(master) self.dataFrame.pack(fill='both', expand=1) self.infoFrame = Frame(self.root, bd=1, relief='groove') self.infoFrame.pack(fill='both', expand=1, padx=10) self.statusBar = Pmw.MessageBar(master, entry_width=40, entry_relief='groove', labelpos='w', label_text='') self.statusBar.pack(fill='x', padx=10, pady=10) # Add balloon text to statusBar self.balloon.configure(statuscommand=self.statusBar.helpmessage) # Create about dialog. Pmw.aboutversion('10.4') Pmw.aboutcopyright('Copyright My Company 1999\nAll rights reserved') Pmw.aboutcontact('For information about this application contact:\n' + ' My Help Desk\n' + ' Phone: 800 555-1212\n' + ' email: [email protected]') self.about = Pmw.AboutDialog(master, applicationname='Example 10-4') self.about.withdraw()
def doMenuBar(self, master): self.menuBar = Pmw.MenuBar(master, hull_borderwidth=1, hull_relief='raised', hotkeys=1, balloon=self.balloon) self.menuBar.pack(fill='x') self.menuBar.addmenu('Search', 'Search') self.menuBar.addmenuitem('Search', 'command', 'Get search result', label='Get result', command=self.doDisplay) self.menuBar.addmenu('Search & Compress', 'Search & Compress') self.menuBar.addmenuitem('Search & Compress', 'command', 'Get search&compress result', label='Get result', command=self.doDisplay2) self.menuBar.addmenu('Save', 'Save') self.menuBar.addmenuitem('Save', 'command', 'Save search result', label='Save result', command=self.saveRst) self.menuBar.addmenu('Indexing', 'Indexing') self.menuBar.addmenuitem('Indexing', 'command', 'Indexing the data', label='Indexing', command=self.indexData) self.menuBar.addmenu('Help', 'Help') self.menuBar.addmenuitem('Help', 'command', 'Get information on application', label='About...', command=self.help) self.menuBar.addmenu('Exit', 'Exit') self.menuBar.addmenuitem('Exit', 'command', 'Exit the application', label='Exit', command=self.root.destroy) # Create about dialog. Pmw.aboutversion('0.2') Pmw.aboutcontact( '\nFor information about this application contact:\n\n' + 'email:[email protected], \n [email protected] \n' '\'21세기 세종 구문분석 말뭉치\' 용례 추출& 문장 압축기\n') self.about = Pmw.AboutDialog(master, applicationname='나무-잎') self.about.withdraw()
def ABOUT(): roo = Tk() roo.geometry('200x200+500+150') roo.withdraw() Pmw.initialise() Pmw.aboutversion('1.0.1') Pmw.aboutcopyright('Copyright Company Name 1999\nAll rights reserved') Pmw.aboutcontact('For information about this application contact:\n' + ' Programmer By Halim-Hiouani\n' + ' Phone: (+213) 669772530 \n' + ' email: [email protected]') about = Pmw.AboutDialog(roo, applicationname='About Dialog') roo.mainloop()
def evt_about_dialog(self): Pmw.aboutversion(sys.prefix) Pmw.aboutcopyright(\ """Copyright: 2001, Regents of the University of California """) Pmw.aboutcontact(\ """Go to cdat.sourceforge.net for documentation, support, bug reporting, and releases. Program for Climate Model Diagnosis and Intercomparison Lawrence Livermore National Laboratory Livermore, CA 94550 """) self.about = Pmw.AboutDialog( self.mainframe, applicationname= "The Visualization Control System's - (VCS) Page Layout Editor")
def evt_about_dialog(self): Pmw.aboutversion(sys.prefix) Pmw.aboutcopyright('Copyright: 2001, Regents of the University of California\n') Pmw.aboutcontact( """Go to cdat.sourceforge.net for documentation, support, bug reporting, and releases. Program for Climate Model Diagnosis and Intercomparison Lawrence Livermore National Laboratory Livermore, CA 94550 """) about = Pmw.AboutDialog(self.dialog.interior(), applicationname = 'VCS Template Editor') about.transient(self.dialog.interior()) self.dialog.position_popup(about)
def __init__(self, parent): # Create dialog. Pmw.aboutversion('9.9') Pmw.aboutcopyright('Copyright My Company 1999\nAll rights reserved') Pmw.aboutcontact('For information about this application contact:\n' + ' My Help Desk\n' + ' Phone: +61 2 9876 5432\n' + ' email: [email protected]') self.about = Pmw.AboutDialog(parent, applicationname='My Application') self.about.withdraw() # Create button to launch the dialog. w = Tkinter.Button(parent, text='Show about dialog', command=self.execute) w.pack(padx=8, pady=8)
root = Tkinter.Tk() Pmw.initialise() root.title("BCD DataBox Manager") busy() Pmw.aboutversion("0.9.9") Pmw.aboutcopyright("Copyright Centre for Hypersonics 2004") Pmw.aboutcontact("Peter Jacobs\nemail: [email protected]") if len(sys.argv) > 1: first_cmd_arg = sys.argv[1] else: first_cmd_arg = "" if first_cmd_arg.rfind("v") >= 0: # Only advertise if the first command line argument is something # like --version -version -v version v ... about = Pmw.AboutDialog(root, applicationname="BCD Databox Manager") root.lower(about) # for advertising... root.after(3000, lambda: about.lower()) setup_GUI_menus(root) nb = Pmw.NoteBook(root) pRun = nb.add("Run Information") pSignal = nb.add("Signal Config") pStatus = nb.add("Databox") pPlot = nb.add("Plotted Data") layout_run_description_page(pRun) layout_signal_config_page(pSignal) layout_databox_status_page(pStatus) layout_plot_page(pPlot) nb.pack(fill=Tkinter.BOTH, expand=1) nb.setnaturalsize()
root = Tkinter.Tk() Pmw.initialise() root.title("px_view Data Viewer") busy() Pmw.aboutversion(versionString) Pmw.aboutcopyright("Centre for Hypersonics 2005") Pmw.aboutcontact("Peter Jacobs\nemail: [email protected]") if len(sys.argv) > 1: first_cmd_arg = sys.argv[1] else: first_cmd_arg = "" if first_cmd_arg.rfind("v") >= 0: # Only advertise if the first command line argument is something # like --version -version -v version v ... about = Pmw.AboutDialog(root, applicationname="px_view Example Data Viewer") root.lower(about) # for advertising... root.after(3000, lambda: about.lower()) force_y_zero = Tkinter.IntVar() force_y_zero.set(1) include_stddev_bars = Tkinter.IntVar() include_stddev_bars.set(1) connect_the_dots = Tkinter.IntVar() connect_the_dots.set(1) setup_GUI_menus(root) nb = Pmw.NoteBook(root) pSignal = nb.add("Signal Selection") pPlot = nb.add("Plotted Data") layout_signal_selection_page(pSignal)
def about(self): Pmw.aboutversion('0.2') Pmw.aboutcopyright('Copyright Ian Bicking 2003') Pmw.aboutcontact('For more information:\n http://pylogo.org') about = Pmw.AboutDialog(self.parent, applicationname='PyLogo') about.show()
def about(self): a = Pmw.AboutDialog(self._parent, applicationname=self.__config.get('about_info', 'app_name')) a.show()
from tkinter import * import Pmw root = Tk() Pmw.initialise() Pmw.aboutversion('1.5') Pmw.aboutcopyright('Copyright Company Name 199\nAll rights reserved') Pmw.aboutcontact( \ 'For information about this application contact:\n' + \ ' Sales at Company Name\n' + \ ' Phone: (401) 555-1212\n' + \ ' email: info@company_name.com') about = Pmw.AboutDialog(root, applicationname='About Dialog') root.mainloop()
def __init__(self, parent): self.currentIdRadio = None self.parent = parent self.parent.wm_title("Ingreso de datos") Pmw.aboutversion('1.0') Pmw.aboutcopyright('Copyright UchileDB\nAll rights reserved') Pmw.aboutcontact('Contacto :\n' + ' Informacion de contacto\n' + ' Phone: +995096669\n' + ' email: [email protected]\n' + ' email: [email protected]\n' + ' aferral and argorthas') self.about = Pmw.AboutDialog( parent, applicationname='Interfaz grafica base de datos Radiografias Uchile' ) self.about.withdraw() ################################################# # Create the Balloon for this toplevel. self.balloon = Pmw.Balloon(parent) # Create and install the MenuBar. menuBar = Pmw.MainMenuBar(parent, balloon=self.balloon) parent.configure(menu=menuBar) self.menuBar = menuBar # Add some buttons to the MainMenuBar. menuBar.addmenu('Create', 'Close this window or exit') menuBar.addmenuitem('Create', 'command', 'Exit the application', command=self.createVentanaPaciente, label='Paciente') menuBar.addmenu('Edit', 'asd') menuBar.addmenuitem('Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Medicamento", queryAddMedicamento, queryDeleteMedicamento, queryUpdateMedicamento, queryListaMedicamento, self.actualizaListas), label='Medicamento') menuBar.addmenuitem( 'Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Alergia", queryAddAlergia, queryDeleteAlergia, queryUpdateAlergia, queryListaAlergia, self.actualizaListas), label='Alergia') menuBar.addmenuitem( 'Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Droga", queryAddDroga, queryDeleteDroga, queryUpdateDroga, queryListaDroga, self.actualizaListas), label='Droga') menuBar.addmenuitem('Edit', 'separator') menuBar.addmenuitem('Edit', 'command', 'Delete the current selection', command=self.editRadio, label='Radio') menuBar.addmenuitem('Edit', 'command', 'Delete the current selection', command=self.editAntecedentes, label='Antecedentes') menuBar.addmenuitem('Edit', 'separator') menuBar.addmenuitem( 'Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Procedencia", queryAddProce, queryDeleteProce, queryUpdateProce, queryListaProce, self.actualizaListas), label='Procedencia') menuBar.addmenuitem( 'Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Zona", queryAddZona, queryDeleteZona, queryUpdateZona, queryListaZona, self.actualizaListas), label='Zona') menuBar.addmenuitem( 'Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Tipo", queryAddTipo, queryDeleteTipo, queryUpdateTipo, queryListaTipo, self.actualizaListas), label='Tipo') menuBar.addmenuitem('Edit', 'separator') menuBar.addmenuitem('Edit', 'command', 'Delete the current selection', command=lambda: self.newWindow( "Tipo", queryAddEnfermedad, queryDeleteEnfermedad, queryUpdateEnfermedad, queryListaEnfermedad, self.actualizaListas), label='Enfermedad') menuBar.addmenu('Help', 'Set user preferences') menuBar.addmenuitem('Help', 'command', 'Set general preferences', command=self.execute, label='About') ############################################################################# # Create and pack the NoteBook. self.notebook = Pmw.NoteBook(parent) self.notebook.pack(fill='both', expand=1, padx=10, pady=10) # Add the "Gemeral" page to the notebook. self.page = self.notebook.add('General') self.notebook.tab('General').focus_set() # Create the "Paciente" contents of the page. self.group = Pmw.Group(self.page, tag_text='Filtrar personas por RUT :') self.group.pack() Label(self.group.interior(), text='RUT sin codigo ver:').grid(row=0, column=0, sticky=W, padx=5, pady=5) self.runentry = Entry(self.group.interior()) self.runentry.grid(row=0, column=1, sticky=W, padx=5, pady=5) # Create the "Radiografia" contents of the page. self.group1 = Pmw.Group( self.page, tag_text='Radiografia \nTodos los campos son obligatorios') self.group1.pack() #---------------Aqui estan las radiografias------------------------------ self.vistaRadio = vistaRadio(self.group1) #Button "Filtro" Button(self.group.interior(), text="Filtrar", command=lambda: filtrarPaciente( self.runentry, self.vistaRadio.getWidget('PacienteCombo'), None)).grid(row=0, column=2, sticky=W, padx=5, pady=5) #Aqui van los antecedentes y la nueva pagina # Add another page self.page1 = self.notebook.add('Antecedentes') self.groupAntecedentes = Pmw.Group(self.page1, tag_text='Antecedentes') self.groupAntecedentes.pack(fill='both', expand=1, padx=10, pady=10) #---------------Aqui estan los antecedentes ------------------------------ self.vistaAntece = vistaAntecedentes(self.groupAntecedentes) self.notebook.setnaturalsize() self.statusValue = StringVar() self.statusValue.set("Status:") self.status = Label(parent, textvariable=self.statusValue).pack() # Create and pack the ButtonBox. b = Button(parent, text="Crear", command=self.crearRadiografia) b.pack(padx=10, pady=10, side=RIGHT) b = Button(parent, text="Borrar campos", command=self.clean) b.pack(padx=10, pady=10, side=RIGHT) self.actualizaListas()