tkinter - How to pop up a message while processing - python -


I want to know, how to pop-up messages when executing / executing the program / function I mean,

  def (): path = tkFileDialog.askopenfilename (filetypes = [("image file", '.jpg')]) im = skimage.io.imread (path, As_grey = true) im = skimage.img_as_ubyte (im) im / = 32g = skimage.feature.greycomatrix (im, [1], [0], level = 8, symmetically = wrong, criterion = true) cont = skimage Feature.greycoprops (g, 'contrast') [0] [0] cont_list1.append (cont) ene = skimage.feature.greycoprops (g, 'energy') [0] [0] ene_list1.append (ene) homo = Skimage.feature.greycoprops (g, 'homogeneity') [0] [0] home_list 1.append (homo) cor = skimage.feature.greycoprops (g, 'correlation') [0] [0] cor_list1.append (cor ) Dis = skimage.feature.greycoprops (g, 'difimilarity') [0] [0] dis_list1.append (dis)   

I want to display a message stating that the features Calculating, and once computing, the message should disappear.

but I fine Button is not required. I do not know how to get it. The results of these calculations will be welcome any suggestions displayed in the separate entry box are welcome.

Take a look at this. It opens a window with the text and when the calculation is done, the text is converted into result.

  & gt; & Gt; & Gt; Import time & gt; & Gt; & Gt; Convert DQF Processing: Import, Typographer, Time, Threading Window = Tanker. Local () # or Tankinor The label starts before coding (TK). Tkinter.Label (window, text = text) label.pack () done = [] def call (): result = function () done.append (result) thread = threading Thread thread (target = call) thread.start () # parallel computing # thread.is_alive (): #include window.update (code) time.sleep (0.001) during code # code when calculation is labeled ['text' ] = Str (done)> gt; & Gt; & Gt; ProcessingPleaseWait ('Wait 2 seconds ...', lambda: time.sleep (2))    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -