Changeset 903

Show
Ignore:
Timestamp:
08/07/08 17:27:07 (5 months ago)
Author:
sontag
Message:

for ticket #87; cosmetic gui changes related to the new Open... button

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/epar.py

    r901 r903  
    639639        top.bind("<Leave>", self.clearInfo) 
    640640 
     641        # Allow them to load/open a file if the right kind was found 
     642        if self.foundSpecials: 
     643            buttonOpen = Button(box, text="Open...", 
     644                                relief=RAISED, command=self.pfopen) 
     645            buttonOpen.pack(side=LEFT, padx=5, pady=7) 
     646            buttonOpen.bind("<Enter>", self.printOpenInfo) 
     647            # separate this button rom the others - it's unusual 
     648            strut = Label(box, text="") 
     649            strut.pack(side=LEFT, padx=20) 
     650 
    641651        # Execute the task 
    642652        buttonExecute = Button(box, text="Execute", 
     
    683693        box.pack(fill=X, expand=FALSE) 
    684694 
    685         # Allow them to load a file if the right kind was found 
    686         if self.foundSpecials: 
    687             buttonOpen = Button(box, text="Open...", 
    688                                 relief=RAISED, command=self.pfopen) 
    689             buttonOpen.pack(side=RIGHT, padx=5, pady=7) 
    690             buttonOpen.bind("<Enter>", self.printOpenInfo) 
    691  
    692695 
    693696    # Determine which method of displaying the IRAF help pages was 
     
    817820        if len(flist) == 1: 
    818821            if askokcancel("Confirm", 
    819                            "Single special-purpose parameter file found.\n"+ \ 
     822                           "One special-purpose parameter file found.\n"+ \ 
    820823                           "Load file?\n\n"+flist[0]): 
    821824                fname = flist[0] 
    822825        else: # len(flist) > 0 
    823826            ld = listdlg.ListSingleSelectDialog("Select Parameter File", 
    824                          "Select which file you prefer for task/pkg:", 
    825                          flist, self.top) 
     827                         "Select which parameter file to load for "+ \ 
     828                         self.pkgName+"."+self.taskName, flist, self.top) 
    826829            fname = ld.getresult() # will be None or a string fname 
    827830