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

def uligo::App::textWindow (   self,
  t,
  title = '',
  grab = 1 
)

Open a window and display the text in the string t.
    The window has the title title, and grabs the focus if grab==1. 

Definition at line 1506 of file uligo.py.

01506                                              :
        """ Open a window and display the text in the string t.
            The window has the title title, and grabs the focus if grab==1. """
        
        window = Toplevel()
        window.title(title)
        text = ScrolledText(window, height=25, width=80, relief=FLAT, wrap=WORD)
        text.insert(1.0, t)
 
        text.config(state=DISABLED)
        text.pack()

        b = Button(window, text="OK", command = window.destroy)
        b.pack(side=RIGHT)
        
        window.update_idletasks()
        if grab:
            window.focus()
            window.grab_set()
            window.wait_window



    def __init__(self, master):


Generated by  Doxygen 1.6.0   Back to index