-1

when i try disappearing tkinter window with Tk.withdraw

and then i take it back by Tk.wm_iconify it goes to last layer but i want it to be in the front any help would be appreciate

kkmmp
  • 1
  • 1
  • no i've already found this but not worked – kkmmp Mar 07 '23 at 13:17
  • Saying that "its not working" is very vague. Update your question with a [minimal-reproducible-example](https://stackoverflow.com/help/minimal-reproducible-example) – Mike - SMT Mar 07 '23 at 13:43

1 Answers1

0

You should be able to do this with root.deiconify and root.lift() where root is your main window, the instance of Tk()

JRiggles
  • 4,847
  • 1
  • 12
  • 27
  • tried it but not worked – kkmmp Mar 07 '23 at 13:16
  • What operating system are you using? I think Mac OS may behave slightly differently from Windows. *Edit*: [see here](https://stackoverflow.com/a/8775078/8512262) for a possible Mac solution – JRiggles Mar 07 '23 at 13:23
  • 2
    @kkmmp without some basic code to test we will have to guess at your needs. Please provided an example. – Mike - SMT Mar 07 '23 at 13:41