How to keep a windows frame on top??

etsang at my-deja.com etsang at my-deja.com
Thu Dec 7 19:27:14 EST 2000


This is the function for calling my window. Can anyone tell how can I
make the windows to always stay on top when called?

def resultsData(self):

        okButton = None

        self.inputWindow = Toplevel(self.master)
        self.inputWindow.geometry("+%d+%d" % (self.master.winfo_rootx()
+180,
                                  self.master.winfo_rooty()+180))
        self.inputWindow.title("Enter data")
        Label(self.inputWindow, text ="Please enter your initials and
the test object").grid(row=0, columnspan=2, pady=6)
        Label(self.inputWindow, text="Initials").grid(row=1, sticky=W)
        Label(self.inputWindow, text="Test object").grid(row=2,
sticky=W)
        self.e1 = Entry(self.inputWindow, textvariable=self.name,
width=35)
        self.e2 = Entry(self.inputWindow, textvariable=self.iut,
width=35)
        self.e1.grid(row=1, column=1, sticky="EW", pady=1)
        self.e2.grid(row=2, column=1, sticky="EW", pady=1)
        okButton = Button(self.inputWindow, text="Ok",
command=self.getData)
        okButton.grid(row=3, column=1, sticky=W, pady=6)
        if self.automatic == FALSE:
	   self.inputWindow.wait_window()
	else:
	   self.getData()


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list