Statement orders

Monu Agrawal monuindia at gmail.com
Sun Oct 2 03:06:39 EDT 2005


Hi I am making a gui based tool. When user preses a perticular button I
am running a heavy command, before this I want to say user to wait with
a image showing infront of her.
My code is like:
	def loadData(self):
		top=Toplevel(self.parent)
		top.focus_set()
		self.parent.wm_title("Loading Data...")

		os.system('a heavy command')
		os.system('another heavy command)
		top.destroy()

Now when I apply it, it first runs the os.system commands then it shows
the top level.
I tried with putting sleep just before os.system() it didn't help.
Is some statement reordering going on, or I am missing something?




More information about the Python-list mailing list